You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
Unclear It is not known whether the hook still receives error_type and is_timeout, or only stopped describing them.
What
Hooks are your own scripts that Claude Code runs at set points. PostToolUse runs after a tool call succeeds and PostToolUseFailure after one fails. Each receives JSON describing the call. The in-app help describing that JSON changed:
PostToolUse now reads "Input to command is JSON with tool_name, tool_input, tool_response, and tool_use_id." It used to say the fields were "inputs" (tool call arguments) and "response" (tool call response).
PostToolUseFailure now lists only tool_name, tool_input, tool_use_id, error and is_interrupt. It used to also list error_type and is_timeout.
These are changes to the help text only. Whether the PostToolUseFailure input itself changed was not checked.
Why
People writing hooks were being given the wrong field names for PostToolUse. If your PostToolUseFailure hook reads error_type or is_timeout, the help no longer lists them, so test that they are still present before relying on them.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up PostToolUseFailure, on Hooks reference.For redaction or transformation use cases, intercept at `PreToolUse` for outbound tool inputs and `PostToolUse` for the results of successful calls. `PostToolUseFailure` can't rewrite a result, so it can't redact a failing command's output.hookssee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not known whether the hook still receives error_type and is_timeout, or only stopped describing them.
Anthropic's documentation agreesAnthropic's documentation has since written up PostToolUseFailure, on Hooks reference.