apply_script_change
Apply a RouterOS script change in Safe Mode, snapshotting config and auto-reverting on session loss or post-apply health check failure.
Instructions
Apply a change inside a RouterOS Safe Mode session: the config is snapshotted first, and the router itself reverts the change if the session drops or the post-apply health check fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>",
"script": "<script>",
"reason": "<reason>",
"approval_code": "<approval_code>"
},
"name": "apply_script_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| reason | Yes | ||
| script | Yes | ||
| approval_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |