Rollback Change
rollback_changeRestore RouterOS to a previous state by reverting a specific write operation using its journal ID. Preview changes with dry-run mode before applying.
Instructions
Restore the RouterOS state to what it was before a write, identified by its journal ID. Reads the before-snapshot from disk, computes the diff against live state, and applies the reverse diff. Use dryRun=true to preview the restore plan without applying. Requires MIKROMCP_DATA_DIR (or defaults to data/) to be configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | Yes | Target router identifier | |
| 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. |