update_hierarchy_plan
Apply one targeted change to a hierarchy plan—completion state, text, child or peer—then regenerate its HTML rendering. Target items by dotted number or unique title.
Instructions
Apply exactly one targeted plan mutation and regenerate its HTML rendering.
The plan path must be absolute beneath the hierarchy roots. The target is
an exact dotted hierarchy number or an exact unique title. Supply exactly one of
completed, text, add_child, replace_children, or add_peer_after.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_path": "<plan_path>",
"target": "<target>"
},
"name": "update_hierarchy_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Replacement item text. | |
| target | Yes | Exact dotted path or exact unique item title. | |
| add_child | No | Text for one appended child. | |
| completed | No | Replacement completion state; branch updates include descendants. | |
| plan_path | Yes | Absolute JSON plan path returned by `create_hierarchy_plan`. | |
| add_peer_after | No | Text for one peer inserted immediately after the target. | |
| replace_children | No | Ordered replacement child texts; an empty list removes all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| next_task | No | ||
| plan_path | Yes | ||
| automatically_completed | No |