run_command
Execute a single shell command on a remote SSH host using a configured alias, with safety checks for destructive commands and configurable timeout.
Instructions
Run one shell command on an SSH host, subject to the safety policy.
host must be an alias from list_hosts (not a raw hostname/IP). Read
exit_status, stdout, and stderr from the result. The result status:
"ok": executed.
"needs_confirmation": destructive command — explain it to the user and only re-call with confirm=true after they approve; do not retry blindly.
"blocked": catastrophic; cannot run — use a safer approach.
"error": see
reason(unknown host, timeout, connection failure).
Args: host: Alias of a configured host (call list_hosts to discover them). command: A single shell command to execute. confirm: Authorize a command previously flagged needs_confirmation. timeout: Per-command timeout in seconds (defaults to policy setting).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| command | Yes | ||
| confirm | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||