bash
Run shell commands in an isolated, no-network sandbox at the repo root to reproduce bugs or handle tasks other tools do not cover; each call returns exit code and combined output.
Instructions
Run a shell command in the repository root (/workspace) inside an isolated sandbox with no network. Each call starts a fresh shell: cd and environment variables do not persist between calls. Returns the exit code and combined stdout/stderr; long output keeps the first 100 and last 50 lines with a '[... N lines truncated ...]' marker, so filter output (grep, head) when you can. Use it for anything the other tools do not cover, e.g. running a small Python snippet to reproduce a bug. Commands are killed after timeout_s seconds.
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 | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |