shell_script
Run multi-line scripts in bash, sh, or Python via stdin. Supports strict error handling, timeouts, and environment variables.
Instructions
Run a multi-line script (bash/sh/python) fed on stdin.
With strict and a shell interpreter, set -euo pipefail is
prepended so failures abort early.
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": "shell_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| interpreter | No | bash | |
| strict | No | ||
| timeout | No | ||
| cwd | No | ||
| env_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |