ssh_exec
Execute commands on remote hosts via SSH and retrieve output. Configure authentication, timeouts, and jump hosts.
Instructions
Run a command on a remote host over SSH and return its output.
host may be an inventory/ssh_config alias or user@host.
known_hosts is strict | accept-new | ignore.
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": "<host>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes | ||
| timeout | No | ||
| user | No | ||
| port | No | ||
| key_path | No | ||
| known_hosts | No | ||
| jump | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |