terminal_exec
Execute shell commands safely inside the project workspace. Enforces security policies, logs execution history, and returns stdout, stderr, exit code, and duration.
Instructions
Executes a terminal command safely scoped to the project workspace. Evaluates security policies, logs execution history, and captures stdout, stderr, exit code, and execution time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Relative sub-directory or workspace path (must be inside project root) | |
| command | Yes | The shell command to execute | |
| projectId | No | Optional project ID to associate command logs with | |
| timeoutMs | No | Execution timeout in milliseconds (defaults to 30000) |