Rollback Change
rollback_changeRevert RouterOS changes to a previous state using a journal ID. Preview the restore plan with dryRun before applying.
Instructions
Restore RouterOS state to before a write, identified by its journal ID: reads the before-snapshot, diffs against live state, and applies the reverse. Use dryRun=true to preview the restore plan. Requires MIKROMCP_DATA_DIR (defaults to data/).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| journalId | Yes | Journal entry ID from write-journal.ndjson to roll back | |
| dryRun | No | Preview the restore plan without applying changes | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |