Dive

Built-in plans

compose_plan

Drafts a whole plan for a goal from the tools in your catalog.

How it works

  1. Lists the plan's inputs and the capabilities it needs.
  2. Searches the catalog for a tool for each capability. If none fits, it stops and returns what's missing.
  3. Writes the whole plan in one call.
  4. Asks you about values it had to guess.
  5. 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

goalstringrequired

What the plan should accomplish

needs_modelstringdefault: outliner

The model role that lists the plan's inputs and capabilities

modelstringdefault: planner

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

StepCalls
needsbuiltin__infer
datafilter
foundmap
gapsfilter
stopexit
contextbuiltin__compose_context
promptbuiltin__reshape
draftbuiltin__infer
formbuiltin__question_form
clarifyroute
checkedbuiltin__check_plan
startbuiltin__reshape
fixedreduce
- id: E1
  tool_name: plan__compose_plan
  input:
    goal: "{{input.goal}}"