Manage Script
manage_scriptAdd, update, or remove MikroTik RouterOS scripts by name with idempotent operations. Validate changes with dry-run preview.
Instructions
Add, update, or remove a RouterOS script. Idempotent by name. add throws CONFLICT if the name already exists; update throws NOT_FOUND if it does not. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| name | Yes | Script name — idempotency key | |
| source | No | Script body (required for add and update) | |
| comment | No | Optional comment | |
| dontRequirePermissions | No | Allow script to run without elevated permissions | |
| dryRun | No | Preview changes without applying. |