guard_action
Check any command, SQL, or tool call before it runs. If blocked, human approval via CLI is required.
Instructions
Check an action BEFORE you run it. Pass the exact command, SQL statement, or tool invocation you are about to execute.
Returns JSON with proceed (true/false). If proceed is false and decision
is "blocked", the action is dangerous and a human must approve it out of
band: tell the user to run infraveil-guard approve <action_id> in their own
terminal, then call this tool again with the one-time approval_code they
give you. You cannot approve your own action. Every decision is recorded in a
local tamper-evident ledger.
action: the exact command/SQL/tool call about to run (required). approval_code: the one-time code a human produced via the CLI (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| approval_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |