Built-in plans
compose_plan
Drafts a whole plan for a goal from the tools in your catalog.
How it works
- Lists the plan's inputs and the capabilities it needs.
- Searches the catalog for a tool for each capability. If none fits, it stops and returns what's
missing. - Writes the whole plan in one call.
- Asks you about values it had to guess.
- Validates the plan and fixes failing steps, up to three rounds.
dive plan draft, the workbench and MCP's dive_plan_draft all run this plan.
Input
What the plan should accomplish
The model role that lists the plan's inputs and capabilities
The model role that writes and fixes the plan
Output
needsobject
What the goal requires, as inputs, capabilities and details, worked out before drafting.
planobject
The drafted plan. Null when no tool could do part of the goal.
validboolean
Whether the drafted plan passed validation.
problemsstring[]
Validation problems left after fixing. Empty when the plan is valid.
yamlstring
The drafted plan as a YAML file.
questionsobject[]
Values the draft had to guess, as questions for you, each with the guess it used.
missingobject[]
Capabilities no tool in the catalog could cover. Empty when a plan was drafted.
Steps
| Step | Calls |
|---|---|
needs | builtin__infer |
data | filter |
found | map |
gaps | filter |
stop | exit |
context | builtin__compose_context |
prompt | builtin__reshape |
draft | builtin__infer |
form | builtin__question_form |
clarify | route |
checked | builtin__check_plan |
start | builtin__reshape |
fixed | reduce |
- id: E1
tool_name: plan__compose_plan
input:
goal: "{{input.goal}}"