runInTerminal
Run a shell command in a specific terminal, wait for completion, and get exit code and output. Uses terminal name or index, with optional timeout.
Instructions
Execute command and wait for completion. Returns exit code and output. Prefer over runCommand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to run (no metacharacters or newlines) | |
| name | No | Terminal name (from listTerminals). Uses active if omitted. | |
| index | No | Terminal index (0-based) from listTerminals. Used if name omitted. | |
| timeout | No | Seconds to wait for completion (default: 30, max: 300) | |
| show | No | Focus terminal panel while running (default: true) |