shell_run
Execute shell commands with list arguments (never concatenated) within a project-relative directory; env keys must be allowlisted for security.
Instructions
Run a shell command with arguments as a list (never concatenated). cwd is locked to the project root or a subdirectory; env keys must be allowlisted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Executable name (no shell metacharacters) | |
| args | Yes | Argument list — never concatenated into a shell string. Pass [] for no args. | |
| cwd | No | Project-relative working directory (defaults to project root) | |
| timeoutMs | No | Soft timeout in ms (default 30000, hard kill 120000) | |
| env | No | Extra env vars; keys outside the allowlist are rejected |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| requiresHarnessSession | Yes | ||
| error | Yes | ||
| _hints | Yes |