Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

11 pages for hookspecificoutput.

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 …g `{}` means allow the tool to proceed. To block execution, return a `hookSpecificOutput` object with `permissionDecision: "deny"` and a `permissionDecisionReason`. The reason is sent to Claude as the… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …ile if file_name.lower() == ".env": return { "hookSpecificOutput": { "hookEventName": input_data["hook_event_name"], "permissionDecision": "deny… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …tRequired[str] # Feedback for Claude # Hook-specific output hookSpecificOutput: NotRequired[HookSpecificOutput] ``` > [!NOTE] > > Use `continue_` (with underscore) in Python code. It is aut… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …es the field. */ terminalSequence?: string; reason?: string; hookSpecificOutput?: | { hookEventName: "PreToolUse"; permissionDecision?: "allow" | "deny" | "ask" | "defer";… Explore the context window Claude Code CLI · in the page context-window …tings.json` runs prettier after every file edit and reports back via `hookSpecificOutput.additionalContext`. That field enters Claude\'s context. Plain stdout on exit 0 does not. It is written to the… Manage costs effectively Claude Code CLI · in the page costs …ead -100" echo "$input" | jq --arg filtered "$filtered_cmd" \ '{hookSpecificOutput: {hookEventName: "PreToolUse", updatedInput: (.tool_input + {command: $filtered})}}' else echo "{}" fi ``` T… Hooks reference Claude Code CLI · in the page hooks …tool call, including denials without a classifier verdict. Use JSON `hookSpecificOutput.retry: true` to tell the model it may retry the denied tool call. Claude Code ignores `retry` when the classifi… Automate actions with hooks Claude Code CLI · in the page hooks-guide …{ "type": "command", "command": "echo '{\"hookSpecificOutput\": {\"hookEventName\": \"PermissionRequest\", \"decision\": {\"behavior\": \"allow\"}}}'" } ]… Week 15 · April 6–10, 2026 Claude Code CLI · in the page whats-new/2026-w15 …ompt correctly`UserPromptSubmit` hooks can set the session title via `hookSpecificOutput.sessionTitle` [Full changelog for v2.1.92–v2.1.101 →](/docs/en/changelog#2-1-92) Week 18 · April 27 – May 1, 2026 Claude Code CLI · in the page whats-new/2026-w18 …crolling`PostToolUse` hooks can replace tool output for any tool via `hookSpecificOutput.updatedToolOutput`, not only MCP toolsNew [`claude ultrareview`](/docs/en/ultrareview) subcommand runs `/ultrar… Week 23 · June 1–5, 2026 Claude Code CLI · in the page whats-new/2026-w23 …n the prompt[Stop and SubagentStop hooks](/docs/en/hooks) can return `hookSpecificOutput.additionalContext` to give Claude feedback and keep the turn going instead of being treated as an error`claude…
Feedback