Expand description
Claude Code hook protocol definitions.
Defines the JSON structures for PreToolUse hook input/output.
Structs§
- Allow
Output - Empty output to allow command execution.
- Allow
With Modified Command Output - Output to allow with a modified command (for transparent interception). This tells Claude Code “allow this tool, but replace the command with this one”. Used when RCH has already executed remotely and wants to substitute a no-op.
- Allow
With Modified Hook Specific Output - Hook-specific output for allow-with-modification responses.
- Deny
Output - Output to deny/block command execution.
- Hook
Input - Input received from Claude Code PreToolUse hook.
- Hook
Specific Output - Tool
Input - Tool-specific input for Bash commands.
- Updated
Input - The modified input to substitute.
Enums§
- Hook
Output - Output sent back to Claude Code from PreToolUse hook.