arai_check_action
Test a hypothetical tool call against active guardrails to prevent deny-and-retry loops. Returns matched rules with severity and source location.
Instructions
Probe whether a hypothetical tool call would match any active guardrail — without executing the call or writing to the audit log. Use BEFORE taking an action you think might be regulated to avoid a deny-and-retry loop. Returns matched rules with severity (block / warn / inform) and source file:line, exactly the same shape arai_recent_decisions returns for actual firings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | Hook event to simulate. Defaults to PreToolUse. | |
| tool | Yes | Tool name to simulate (Bash, Edit, Write, etc). Required. | |
| tool_input | Yes | Tool input object — same shape Claude Code would send. e.g. for Bash: {"command": "git push --force"}; for Edit/Write: {"file_path": "src/x.py", "content": "..."}. |