ros_cli
Run plain RouterOS terminal commands over SSH and return the text output, supporting multiple commands separated by semicolons or newlines for remote MikroTik configuration and diagnostics.
Instructions
Run plain terminal commands over SSH and return the text output, exactly as typed in the WinBox 'New Terminal'. Multiple commands can be separated by ';' or newlines. E.g. '/ip route print detail', '/export hide-sensitive', ':put [/system resource get cpu-load]'.
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": {
"command": "<command>"
},
"name": "ros_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| router | No | ||
| command | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |