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.
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 |