arai_check_action
Check tool calls against active guardrails before execution to avoid deny-and-retry loops. Returns matched rules with severity and source file:line.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool": "<tool>",
"tool_input": "<tool_input>"
},
"name": "arai_check_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool name to simulate (Bash, Edit, Write, etc). Required. | |
| event | No | Hook event to simulate. Defaults to PreToolUse. | |
| 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": "..."}. |