run_command
Executes local shell commands and returns stdout, stderr, and exit code, so agents can inspect system state or automate tasks. Supports working directories, stdin, timeouts, and tmux sessions.
Instructions
Execute a shell command locally. Returns stdout, stderr, and exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (default: home) | |
| stdin | No | Optional string to pipe to command stdin | |
| command | Yes | The shell command to execute | |
| session_id | No | If provided, run inside this tmux session | |
| timeout_ms | No | Timeout in ms (default 30000, max 300000) |