run
Execute shell commands synchronously, capturing exit code, duration, and stdout/stderr output. Bounded output capture prevents token overflow.
Instructions
Execute a shell command synchronously and wait for completion.
Returns exit code, duration, and captured stdout+stderr. Output is bounded by max_output (default 64KB) using head+tail capture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| shell | No | ||
| command | Yes | ||
| max_output | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |