execute_ssh_command
Execute shell commands on remote hosts over SSH, returning output, exit code, and log file path for system management and troubleshooting.
Instructions
Run a shell command on a remote host over SSH.
Args:
hostname: Host alias from SSH config.
command: Shell command to run.
timeout: Connection/command timeout, seconds (default 30, max 300).
max_length: Max stdout/stderr length in the response (default 1000, max 10,000,000); full output is in the log file.
Returns:
Command output (markdown), with exit code and the log file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| hostname | Yes | ||
| max_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |