gate_action
Gate an action before execution by signing the decision, returning APPROVED, DENIED, or PENDING_APPROVAL. All outcomes are recorded in the audit trail.
Instructions
Pre-execution gate; signs the decision and returns APPROVED, DENIED, or PENDING_APPROVAL.
Both outcomes hit the audit trail. After an APPROVED gate, call
complete_action(gate_id, result) to bind the outcome into a bilateral receipt.
Args:
action_type: The action to gate (e.g. "data:delete:users", "tool:execute:sql")
agent_id: The agent requesting the action
tool_name: Optional name of the tool being invoked
arguments: Optional JSON string of the tool arguments
risk_context: Optional description of why this action is riskyInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_type | Yes | ||
| agent_id | Yes | ||
| tool_name | No | ||
| arguments | No | ||
| risk_context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |