run_command
Evaluate commands against a security policy and execute allowed commands in a sandboxed environment, preventing unauthorized actions.
Instructions
Evaluate command against policy and, if allowed, run it sandboxed.
Denied commands are never executed. cwd (if given) must resolve inside
the jail root; any traversal/symlink/absolute escape returns CWD_ESCAPE.
Any unexpected error becomes INTERNAL_ERROR with a generic message.
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>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | Yes | ||
| stderr | No | ||
| stdout | No | ||
| exit_code | No | ||
| duration_ms | No | ||
| policy_reason | No |