inspect_command
Analyze a shell command before execution and return a deterministic, policy-aware decision (allow, notice, confirm or block) without running it, under the applicable policy — permissive, balanced or strict, balanced by default. Paths outside a known workspace_root are treated as higher risk than paths inside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working-directory context. It is never accessed. | |
| shell | No | The command shell, when known. | |
| policy | No | Optional policy used to compute the decision: permissive, balanced or strict (default: balanced). | |
| command | Yes | The complete command text to inspect without executing it. | |
| context | No | Optional declarative context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| risk | Yes | ||
| shell | Yes | ||
| valid | Yes | ||
| checks | Yes | ||
| command | Yes | ||
| signals | Yes | ||
| decision | Yes | ||
| risk_score | Yes | ||
| policy_applied | Yes | ||
| schema_version | Yes | ||
| ruleset_version | Yes | ||
| context_completeness | Yes |