ConceptPreToolUse / 工具调用前钩子
PreToolUse Hook
A tool-call interception mechanism provided by Claude Code that allows users or platforms to insert custom validation logic before Claude executes any tool, such as Bash commands or file read/write operations. Returning continue:false from the hook prevents the tool call from proceeding.
Timeline (last 90 days)
Oct 19
The PreToolUse hook is an extension point provided by Claude Code that allows developers to insert custom logic before a tool call is actually executed; the hook receives the name and arguments of the tool about to be executed and can return a decision to influence the final behavior.
Unverified50%