execute_command
Run any shell command on a remote SSH server and capture stdout/stderr for diagnostics, log tailing, service control, and one-off tasks.
Instructions
Execute a shell command on the remote SSH server.
Runs any shell command and returns stdout + stderr. Suitable for one-off commands, diagnostics, log tailing, service control, etc.
Args: command: The shell command to execute (e.g., "df -h", "systemctl status nginx"). timeout: Maximum seconds to wait for the command to finish (default 60). host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: Command output (stdout), or combined stdout/stderr on error.
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": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| host_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |