bash
Execute shell commands with a specified working directory and timeout. Captures output, saving complete results to a file when truncated.
Instructions
Execute a shell command. Set workdir instead of changing directories inside the command when possible. timeout is in milliseconds. Output is capped; complete truncated output is saved to a file.
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 | The command to execute | |
| timeout | No | Optional timeout in milliseconds | |
| workdir | No | The working directory to run the command in. Defaults to the current directory. Use this instead of 'cd' commands. |