run_command
Runs shell commands in the workspace only after Telegram approval, returning the decision, exit code, and output; denied commands do not execute and should not be retried unchanged.
Instructions
Run a shell command in the workspace after the user approves it on Telegram.
Returns decision (approved, auto-approved, denied, denied-timeout, denied-error, blocked, rejected), exit_code (null if not run), and output (combined stdout/stderr, truncated). If denied, the command did not run: do not retry it in another form; adjust your plan or ask_user.
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": {
"command": "<command>",
"reason": "<reason>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory, absolute or relative to the workspace root. Must be inside the workspace. | |
| reason | Yes | One sentence on why this command is needed. | |
| command | Yes | The exact shell command to run. | |
| timeout_s | No | Seconds to wait for approval (default 600). No answer means denied. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||