Search the documentation
6 pages for posttoolusefailure.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…| | `PostToolUseFailure` | Yes | Yes | Tool execution failure…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…tool execution "PostToolUse", # Called after tool execution "PostToolUseFailure", # Called when a tool execution fails "UserPromptSubmit", # Called when user submits a prompt "Stop"…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…theme={null} type HookEvent = | "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "PostToolBatch" | "Notification" | "UserPromptSubmit" | "UserPromptExpansion" | "SessionStart" |…
Hooks reference
Claude Code CLI · in the page
hooks
…the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, PostToolBatch, SubagentStart/Stop, TaskCreated, TaskCompleted), and Stop or StopFailure, followed by TeammateI…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…| | `PostToolUseFailure` | After a tool call fails…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `PostToolUseFailure` | After a tool call fails…