{"version":"2.1.288","anchor":"tool-error-text-unwrapping-from-tags","canonical_anchor":"tool-error-text-unwrapping-from-tags","heading":"Tool error messages lose their wrapper tags before being shortened","tier":"notice","area":"Agent Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.288\/e\/tool-error-text-unwrapping-from-tags","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.288","markdown":"### Tool error messages lose their wrapper tags before being shortened\n\nWhen a tool fails, Claude Code strips the markup around the error text before cutting it down to length\n\n**Unclear.** It is not clear whether the error text Claude itself receives still carries the tags.\n\n**What**\n\nA tool is an action Claude can take, such as reading a file or running a command. When a tool fails, its error text is wrapped in markup tags. Claude Code now removes those tags before shortening a long error, instead of shortening the wrapped text as it was.\n\n**Why**\n\nError text is cleaner, and the tags no longer count toward the length limit, so more of the actual message survives.\n\n- Area: Agent Tools\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}