bash_exec
Run bash scripts in a sandboxed in-memory filesystem overlay, preventing real file modification, with configurable network access and optional Python/JS runtimes.
Instructions
Execute a bash script in a sandboxed virtual filesystem mounted at the project root. Writes go to an in-memory overlay and do NOT touch the real filesystem unless committed. Network is disabled unless JUST_BASH_NETWORK_ALLOW is set. Supports: cat/cp/ls/find/grep/awk/sed/sort/uniq/jq/sqlite3/xan/yq/tar/tee, optional python3 (CPython WASM) and js-exec (QuickJS) runtimes.
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": {
"script": "<script>"
},
"name": "bash_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Bash script to execute | |
| timeout | No | Timeout in ms (max 30000) |