ssh_execute
Run shell commands on remote SSH servers and capture stdout, stderr, and exit code. Connections are reused automatically for efficient execution.
Instructions
Execute a command on a remote SSH server.
Runs the given shell command on the specified server and returns stdout, stderr, and exit code. Connections are established automatically and reused.
EXAMPLES:
Run command: ssh_execute("proxmox", "uptime")
With timeout: ssh_execute("truenas", "zpool status", timeout=60)
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": {
"server_name": "<server_name>",
"command": "<command>"
},
"name": "ssh_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute | |
| timeout | No | Command timeout in seconds (default: 30) | |
| server_name | Yes | Server name to execute on (from ssh_list_servers) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||