Apply Plan
apply_planExecute ordered write operations with per-step snapshots and journals, stopping on first failure and refusing stale plans via planFingerprint so validated changes apply safely.
Instructions
Execute write operations in order, stopping on first failure. Each step is snapshotted and journaled individually. Pass the planFingerprint from plan_changes so the plan is refused (PLAN_STATE_CHANGED) when the configuration it touches changed after the preview — this check applies to every role. Non-admin identities also need a confirmationToken (same two-step flow as other destructive tools), itself bound to the state when issued. Undo individual steps via rollback_change with the returned journal IDs.
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": {
"steps": "<steps>"
},
"name": "apply_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered list of write operations to apply in sequence | |
| routerId | No | Router ID; omit to use the default router. | |
| planFingerprint | No | The planFingerprint from plan_changes. When given, apply_plan first checks that the steps are the planned ones and that the configuration each step touches is still what plan_changes saw, and refuses with PLAN_STATE_CHANGED if not. Recommended: without it, the plan runs against whatever the state is now. | |
| confirmationToken | No |