{"version":"2.1.121","anchor":"updatedtooloutput-hook-property","canonical_anchor":"updatedtooloutput-hook-property","heading":"updatedToolOutput Hook Property","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121\/e\/updatedtooloutput-hook-property","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121","markdown":"### `updatedToolOutput` Hook Property\n\n**What**\n\nPostToolUse hooks can now replace tool output for ALL tools (not just MCP tools) via the new `updatedToolOutput` field.\n\n**Details**\n\n- Previously, only `updatedMCPToolOutput` was available, which only worked for MCP tools\n- The new `updatedToolOutput` field works for any tool (Bash, Read, Write, Edit, MCP, etc.)\n- The old `updatedMCPToolOutput` is retained but its description now says \"Prefer updatedToolOutput, which works for all tools\"\n- Validation error if hook output doesn't match expected tool output shape: \"PostToolUse hook returned updatedToolOutput that does not match {tool}'s output shape\"\n\n**Evidence**\n\nHook output replacement (search for `\"updatedToolOutput\"`, `\"Replaces the tool output before it is sent to the model\"`)"}