{"version":"2.1.334","anchor":"tool-call-circuit-breaker-and-posttooluse-output-shape-error","canonical_anchor":"tool-call-circuit-breaker-and-posttooluse-output-shape-error","heading":"Hooks that rewrite a tool result in the wrong shape now get an error","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/tool-call-circuit-breaker-and-posttooluse-output-shape-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Hooks that rewrite a tool result in the wrong shape now get an error\n\nA PostToolUse hook whose updatedToolOutput doesn't match the tool's output shape is now reported as a hook error that does not stop work\n\n**What**\n\nA `PostToolUse` hook runs after a tool call succeeds, and can rewrite the tool's result with `updatedToolOutput`. Each tool's result has an expected shape, meaning the fields and types it is made of. If a hook's `updatedToolOutput` does not match that shape, Claude Code now reports it as a hook error. The error is non-blocking, so the session carries on.\n\n**Why**\n\nIf you write hooks, you now find out when your rewrite was not used, instead of it being dropped without a word.\n\n- Area: Hooks\n- Names: `PostToolUse`, `updatedToolOutput`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}