run_command
Execute a shell command and wait for completion, returning exit code, stdout, and stderr. Use for builds, tests, git, npm, python, and other CLI tasks.
Instructions
Run a shell command (/bin/bash) and wait for it to finish. Returns exitCode, stdout, stderr. Use for builds, tests, git, npm, python, ffmpeg, etc. For servers/watchers that never exit use process_start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (default: default workspace) | |
| stdin | No | Optional text piped to stdin | |
| command | Yes | ||
| timeoutMs | No | Default 120000 | |
| resourceClass | No | Admission class; defaults to automatic command classification | |
| resourceWaitMs | No | How long to wait for CPU/RAM capacity before refusing the command |