Manage Container
manage_containerCreate, start, stop, or remove RouterOS containers. Supports dry-run previews and idempotency: create requires a pre-configured veth interface.
Instructions
Create, start, stop, or remove a RouterOS container. create needs a pre-configured veth interface; start/stop are no-ops when already in the target state; remove throws NOT_FOUND when absent. Supports dry-run.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Container name — idempotency key | |
| action | Yes | Action to perform | |
| dryRun | No | Preview changes without applying. | |
| comment | No | Optional comment | |
| envlist | No | RouterOS environment list name for container env vars | |
| rootDir | No | Root directory for container files | |
| routerId | No | Router ID; omit to use the default router. | |
| interface | No | veth interface name to attach the container to (required on create — must be pre-configured in RouterOS) | |
| remoteImage | No | Docker image to pull (required on create, e.g. alpine:latest) | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |