Manage Script
manage_scriptAdd, update, or remove RouterOS scripts with idempotent naming. Preview changes using dry-run mode.
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 | Yes | Target router identifier from the router registry | |
| 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 |