ssh_run
Execute shell commands on remote hosts to inspect or change system state, returning output and exit code. Supports background execution and per-host command rules.
Instructions
Execute a shell command on a remote host and return stdout, stderr and the exit code. Use for inspecting state (logs, processes, ports, containers, service status) and for changing it (deploy, restart, edit). Prefer one command per call; chain with && when steps must be ordered. Set background=true for long-running or daemonizing commands so the call returns at once. Each host has its own allowCommands/denyCommands rules; a refusal names the rule that blocked it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| host | Yes | ||
| command | Yes | ||
| timeout | No | ||
| background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||