{"version":"2.1.334","anchor":"hook-tool-results-can-be-rewritten-and-appended-to-the-trans","canonical_anchor":"hook-tool-results-can-be-rewritten-and-appended-to-the-trans","heading":"Tool results changed by a hook are now the ones clients see","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/hook-tool-results-can-be-rewritten-and-appended-to-the-trans","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Tool results changed by a hook are now the ones clients see\n\nWhen a hook rewrites a tool's result, Claude Code now records the rewritten version in the session and shows that version\n\n**What**\n\nA hook is a command you set up to run automatically at certain moments, for example after Claude uses a tool. A tool call is one action Claude takes, such as editing a file.\n\nFor tool calls that hooks may act on, Claude Code now adds them to the session record as they happen and keeps track of their results. When a hook rewrites a result, the rewritten version is the one shown to the program displaying the session. Before, the result was always rebuilt from the tool's own output. This does not apply when hooks are turned off in settings.\n\nThe way Claude Code reads the paths a hook asks to watch now uses a shared step.\n\n**Why**\n\nA hook can now change the tool result that clients display, not just observe it.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}