Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

8 pages for hookeventname.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …return { "hookSpecificOutput": { "hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "Destructi… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …return { "hookSpecificOutput": { "hookEventName": input_data["hook_event_name"], "permissionDecision": "deny", "permissionDecisionRe… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …discriminated union of event-specific `TypedDict` output types. The `hookEventName` field determines which fields are valid. For full details on available fields per hook event, see [Control executio… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e?: string; reason?: string; hookSpecificOutput?: | { hookEventName: "PreToolUse"; permissionDecision?: "allow" | "deny" | "ask" | "defer"; permissionDecisionReason?: s… Run tool calls from code with Code Mode Claude Code CLI · in the page code-mode …int this JSON: ```json theme={null} { "hookSpecificOutput": { "hookEventName": "PostToolUse", "updatedToolOutput": { "code": "(await $`cat notes.txt`.text())", "result": "deploy… Manage costs effectively Claude Code CLI · in the page costs …t" | jq --arg filtered "$filtered_cmd" \ > '{hookSpecificOutput: {hookEventName: "PreToolUse", updatedInput: (.tool_input + {command: $filtered})}}' > else > echo "{}" > fi > ``` To verify the… Hooks reference Claude Code CLI · in the page hooks …ep -q 'rm -rf'; then > jq -n '{ > hookSpecificOutput: { > hookEventName: "PreToolUse", > permissionDecision: "deny", > permissionDecisionReason: "Destructive command blocked by… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ype": "command", "command": "jq -c '{hookSpecificOutput: {hookEventName: \"PermissionRequest\", decision: {behavior: \"allow\", updatedInput: .tool_input}}}'" } ] }…
Feedback