#Markdown recipes
Use recipes to expose exact actions inside a FLOW.md procedure.
The Agent chooses whether and when to activate each available recipe.
Fence order expresses no enforced execution sequence.
For a complete method, follow Write a Markdown method. Markdown/0 defines exact parsing, interpretation, lifecycle, and limits.
#Recipe syntax
Each root-level lowercase flow fence contains one instruction:
For example, this recipe offers an exact call using the invocation input:
The package must declare reviewer under uses.
The receiving host selects and authorizes its implementation.
An illustrative slot name supplies neither a provider nor permission to use one.
Only entrypoint fences directly under the document root become candidates.
Quoted, list-nested, and displayed inner fences remain ordinary examples.
An executable fence has an explicit matching close and the exact lowercase info string flow.
Trailing comments, extra instructions, and malformed operands make a recipe unavailable.
#Operands
@value can select an exact call output or received message without reconstructing it.
@previous includes the surrounding result or iterator envelope.
The profile has no field selector such as @previous.output.
A failed call or receive clears @previous.
End-of-channel also clears it. Older retained values remain selectable through @value.
Sending and closing leave the cursor unchanged.
Strings such as "@input" and objects such as {"$ref":"@previous"} remain literal JSON.
The profile supplies no templates, assignments, conditions, loops, or expressions.
Use code when the procedure needs deterministic sequencing or value transformation.
#Results and outcomes
The return operand contains both outcome and output.
For example:
An optional FLOW.contract.json can declare custom outcomes and validate complete results.
A forwarding method must declare any custom outcome it can itself return.
Operational failure, cancellation, or uncertainty remains separate from domain outcomes.
#Calls and channels
A call result contains the child's outcome and output.
Receiving a message supplies an iterator result whose value is the message.
Message arrival and channel completion do not establish that the producer succeeded.
The host wires required endpoints before invocation. Markdown/0 advances sequentially: it cannot allocate endpoints, start concurrent calls, or observe a child while awaiting that child. Host deadlines and interpreter budgets bound waiting and reasoning.
Check tool restrictions before relying on reads or effects. The support reference identifies available execution paths.