{"version":"2.1.327","anchor":"posttoolusefailure-hook-description-drops-error-type-and-is","canonical_anchor":"posttoolusefailure-hook-description-drops-error-type-and-is","heading":"In-app help for after-tool hooks lists different input fields","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/posttoolusefailure-hook-description-drops-error-type-and-is","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### In-app help for after-tool hooks lists different input fields\n\nThe hook help text for PostToolUse now names the real input fields, and PostToolUseFailure's text no longer mentions error_type and is_timeout\n\n**Unclear.** It is not known whether the hook still receives error_type and is_timeout, or only stopped describing them.\n\n**What**\n\nHooks 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:\n\n- `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).\n\n- `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`.\n\nThese are changes to the help text only. Whether the `PostToolUseFailure` input itself changed was not checked.\n\n**Why**\n\nPeople 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.\n\n- Area: Hooks\n- Names: `PostToolUseFailure`, `error_type`, `is_timeout`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}