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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| host_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |