---
title: "PostToolUseFailure"
description: "Hooks triggered on PostToolUseFailure events (2 hooks)."
canonical: "https://orchestkit.dev/docs/reference/hooks/post-tool-use-failure"
---

# PostToolUseFailure

Hooks triggered on PostToolUseFailure events (2 hooks).

# PostToolUseFailure Hooks

**2 hooks** registered for the `PostToolUseFailure` lifecycle event.

| Hook | Matcher | Behavior | Description |
|------|---------|----------|-------------|
| <span id="hook-bash-write-edit-agent-posttool-failure-handler"></span>`failure-handler` | `Bash\|Write\|Edit\|Agent` | Injects | PostToolUseFailure Handler CC 2.1.25: Error-path hook that counts tool failures and adds context for structured errors |
| <span id="hook-bash-write-edit-agent-lifecycle-webhook-forwarder"></span>`webhook-forwarder` | `Bash\|Write\|Edit\|Agent` | Fire-and-forget | Registered for every CC event type in hooks.json (async: true). Delegates to telemetry.emit() which fans out to pluggable sinks (JSONL local + HTTP remote). No-op when no sinks are active. |
