Run an approved command
shell.run_approvedExecutes a previously approved command exactly as stored, using its original program, arguments, and working directory. Requires a request_id and enforces single-use approvals.
Instructions
Execute a previously-APPROVED command exactly as stored.
Takes only a request_id; the program, args, and cwd are always the originals captured when the request was created. Approvals are single-use, so a request cannot be replayed.
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": {
"request_id": "<request_id>"
},
"name": "shell.run_approved"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| args | Yes | ||
| risk | Yes | ||
| error | No | ||
| stderr | No | ||
| stdout | No | ||
| message | No | ||
| outcome | Yes | ||
| program | Yes | ||
| approval | No | ||
| executed | Yes | ||
| trace_id | Yes | ||
| timed_out | No | ||
| request_id | No | ||
| returncode | No | ||
| risk_reason | Yes | ||
| approval_status | No |