ssh_exec
Execute a remote command on any registered SSH host using its host ID. Supports Linux and MikroTik systems through configured transports.
Instructions
Execute a command on a configured host by host_id
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": {
"host_id": "<host_id>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Remote command (bash on Linux; RouterOS on MikroTik hosts) | |
| host_id | Yes | Host id from ssh_list_hosts (e.g. prod-openwrt, dslab-ml) | |
| timeoutMs | No | Timeout in milliseconds (default 120000) |