Tools · Planning and checking
plan_task
Read-onlyGenerate a concrete execution plan with ordered steps, risks, and checkpoints.
When to use: Use this before larger workflows or when a task benefits from decomposition into clear steps.
Example
Run for real by scripts/tool-examples.py in a small demo project, with Haiku 5.5 where the tool calls a model. The output is exactly what the tool returned.
The call
{
"tool": "plan_task",
"arguments": {
"goal": "Add annual billing to the pricing module",
"constraints": [
"keep price() backwards compatible"
]
}
}Real output
Goal: Add annual billing to the pricing module Plan: 1. Clarify the target output and inputs. 2. Select the right tools and gather evidence. 3. Execute the task in small verifiable steps. 4. Verify the result against constraints. 5. Return the final deliverable and note any residual risks. Constraints: - keep price() backwards compatible
Parameters
| Name | Type | Description |
|---|---|---|
| goal* | string | Desired end state |
| constraints | array | Optional constraints |
* required
More in Planning and checking
Plan the work, weigh options, and check results before answering.