terminal
Execute shell commands with full system access. Use for git, npm, pip, and any command-line task.
Instructions
Execute shell commands. Returns {success, output, exit_code, duration_seconds}. Use for: git, npm, pip, system commands, anything requiring shell. UNRESTRICTED - full privileges, no sandboxing. Windows: cmd.exe, Unix: bash. Timeout: 120s default, 600s max. Background: run_in_background=true returns task_id. Use bg_status/bg_kill/bg_list to manage. For file ops prefer fs; for Python prefer python_exec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Default: current dir. | |
| bg_kill | No | Kill a running background task by task_id. | |
| bg_list | No | List all background tasks with status. Set true. | |
| command | No | Shell command to execute. Supports pipes, redirects, chaining (&&, ||). | |
| timeout | No | Timeout in seconds. Default: 120. Max: 600. | |
| bg_status | No | Get status/output of a background task by task_id. | |
| description | No | Brief description for logging (e.g., 'Install deps'). | |
| run_in_background | No | Run command in background, return task_id immediately. Default: false. |