process_run_script
Execute multi-line shell scripts by writing to a temp file. Returns JSON with success status, return code, stdout, stderr, and truncation indicator. Supports custom timeout, working directory, and interpreter.
Instructions
[process] Run a multi-line shell script. Writes to a temp file and executes it. Returns JSON with: success, returncode, stdout, stderr, truncated.
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": "process_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No | ||
| cwd | No | ||
| interpreter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |