command_run
Run an allowlisted executable with separate arguments inside an allowed root and wait for exit; no shell string, and long-running commands should use process_start and process_output.
Instructions
Run one allowlisted executable with a separate argument array inside an allowed root and wait for it to exit. No free-form shell command string is accepted. timeoutMs is capped at 240000 ms (shell.maxTimeoutMs); a run still going at the cap is killed and returns timedOut with the output captured so far. Use process_start and process_output for longer runs, such as coding-agent CLIs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| args | No | ||
| agent | No | Optional existing runtime binding for monitor attribution; no extra handshake. | |
| command | Yes | ||
| timeoutMs | No |