shell_exec
Execute a bash command in a persistent shell session, preserving environment and state across calls for sequential or long-running operations.
Instructions
Execute one bash command in a persistent shell.
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": {
"shell_id": "<shell_id>",
"command": "<command>"
},
"name": "shell_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| shell_id | Yes | ||
| yield_ms | No | ||
| timeout_ms | No | ||
| max_output_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||