Run local bash command
bashExecute local shell commands to list directories, find files, search text, manage Git/packages, run builds/tests, and automate scripts.
Instructions
Run a shell command on the local computer using bash. Commands time out after 600 seconds (maximum 10 minutes). Independent calls can run concurrently; avoid concurrent writes to the same files. Use this for directory listing, file discovery, grep/ripgrep, git, package managers, build/test commands, scripts, network tools, and other CLI work. Commands start in the configured base directory; use cd inside the command when needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "bash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Bash command string to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| exit_code | Yes | ||
| timed_out | Yes | ||
| duration_ms | Yes | ||
| stderr_truncated | Yes | ||
| stdout_truncated | Yes |