Shell Exec
v2.0.0Execute bash commands with background job support.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute Execute
Run a command in bash. Returns stdout, stderr, and exit code. Default timeout is 5 seconds. For long-running commands, set 'background: true' to run in background and get a job ID. Then use get_status to check on it. Tips: - Use background mode for commands that take more than a few seconds - For file searches, use 'find' or 'grep' - For file operations, use 'mv', 'rm', 'mkdir -p', 'stat' etc.
| Parameter | Type | Description |
|---|---|---|
command * | string | The bash command to run |
background | boolean | Run in background and return job ID |
timeout_ms | number | Timeout in milliseconds (default: 5000) |
get_job_status Get Job Status
Check status of a background job. Returns stdout/stderr collected so far, exit code (null if still running), and whether the job is still running. Completed jobs are cleaned up after their status is read.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | The job ID returned from execute with background: true |