Rollback Change
rollback_changeRestore a device to its pre-write state from a journal ID by reversing the applied changes. Preview the restore plan with dry run, or confirm to undo failed or unwanted network modifications.
Instructions
Restore device state to before a write, identified by its journal ID. RouterOS: reads the before-snapshot, diffs against live state, and applies the reverse. SwOS: re-POSTs the exact pre-write '.b' blob. Use dryRun=true to preview. Requires MIKROMCP_DATA_DIR (defaults to data/).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview the restore plan without applying changes | |
| routerId | No | Router ID; omit to use the default router. | |
| journalId | Yes | Journal entry ID from write-journal.ndjson to roll back | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |