update_hierarchy_plan
Apply one targeted mutation to a hierarchical plan—completion, text edit, child add/replace, or peer insert—then regenerate its HTML view.
Instructions
Apply exactly one targeted plan mutation and regenerate its HTML rendering.
The plan path must be absolute beneath configured workspace 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.
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 |