shell_run
Execute a command in an existing shell session, preserving its working directory and environment; invalid or dead session IDs return SESSION_GONE.
Instructions
Run one command inside an open shell session (it keeps cwd and env); unknown or dead session ids fail with SESSION_GONE, and the safety gate applies like exec.
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": {
"id": "<id>",
"command": "<command>"
},
"name": "shell_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id from shell_open | |
| command | Yes | ||
| override | No | Set to "sever-transport" to run a command the safety gate refused | |
| timeoutMs | No |