Skip to content

Exit Nodes

Exit nodes mark the end of the task. A task template can have multiple exit nodes to represent different outcomes.

Exit nodes can have an output schema. Defining one guarantees the shape of the result and prevents accidental changes to the output caused by modifying nodes or edges upstream. Without a schema, the exit node passes through whatever data it receives.

The output schema is also used to identify MCP-capable task templates. When an exit node uses the MCPResult schema, the task template becomes available as a tool for LLMs via MCP.