router_undo
Reverse a journaled router configuration change to restore prior settings, removing inserts and re-adding deletions; it refuses if the router changed since unless forced.
Instructions
Reverse a journaled change (writes restore old values, inserts are removed, removes re-added, updates swapped back). Refuses if the router changed since, unless force=true. Reboots/firmware/actions are not undoable. Dry run first like every write.
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": {
"id": "<id>"
},
"name": "router_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| apply | No | false (default) = dry run: show the plan, diff, warnings and risk, send nothing. true = send it. | |
| force | No | ||
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |
| confirm_token | No | Required with apply=true for CRITICAL changes: the token from the dry run (valid 5 minutes, bound to the exact plan and current router state). |