execute_bash
Run Bash commands and scripts on any OS with automatic shell detection, process management, timeout limits, and custom working directories.
Instructions
Execute a Bash command or script with robust process lifecycle management. Automatically detects and uses Git Bash or WSL on Windows, and native Bash on POSIX.
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": "execute_bash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| env_type | No | auto | |
| timeout_seconds | No | Execution timeout in seconds (1-3600). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |