run_command
Execute shell commands in a specified working directory while blocking catastrophic patterns and requiring confirmation for high-risk operations.
Instructions
Run a shell command in a given working directory (npm install, npm run build, pip install, tests, etc.). A short list of catastrophic patterns (drive wipes, format, shutdown) is blocked; everything else executes with full permissions. HIGH risk — requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory to run the command in | |
| command | Yes | The shell command to run | |
| confirm | No | Must be true to proceed | |
| timeout_ms | No | Timeout in ms, default 60000 |