ssh_run
Run shell commands on a remote server over SSH. Specify the command, working directory, timeout, and host to execute tasks like builds or scripts.
Instructions
Execute a shell command on the remote server.
The command runs in a bash login shell with the configured environment preamble (e.g., sourced setup scripts) already applied.
Args: command: Shell command to run (e.g., "make test", "python script.py"). cwd: Working directory on the remote. Defaults to the host's configured default_cwd. timeout: Timeout in seconds. Defaults to host config (usually 30s). host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| cwd | No | ||
| timeout | No | ||
| host | No |