Run a command
runRun a shell command (bash -c) as the user the agent runs as: root for a root agent, otherwise the site owner. No terminal, no stdin. Returns exit code, stdout and stderr (long output keeps the first 16 KB and last 48 KB). Destructive commands need the user's approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory, absolute. | |
| why | No | One plain sentence for the user, shown on the approval page if this call needs their approval: what it does and why it is needed. | |
| server | No | Server name or id. Optional when the account has one server. | |
| command | Yes | ||
| timeout_s | No | Default 120, max 1800. | |
| approval_id | No | Only when repeating a call the user approved. |