Claude Agent SDK Hooks: Block, Modify, and Audit Tool Calls (2026)
Register PreToolUse and PostToolUse hooks in the Claude Agent SDK to block dangerous tool calls, rewrite a tool's arguments, and audit every action. Copy-paste runnable Python and TypeScript, August 2026.