{"version":"2.1.333","anchor":"cleared-tool-result-images-are-tracked","canonical_anchor":"cleared-tool-result-images-are-tracked","heading":"Images cleared from tool results are recorded and handled when media is stripped","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/cleared-tool-result-images-are-tracked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Images cleared from tool results are recorded and handled when media is stripped\n\nMessages now record which tool results had images cleared, and image handling uses that list plus a named set of tools\n\n**What**\n\nA tool result is the output Claude gets back after using a tool. Sometimes Claude Code replaces a tool result with a shorter version. It now keeps track of images that were removed this way:\n\n- `clearedImagesOf` is a new record on messages. When a tool result is replaced, it lists the `tool_use_id` of each tool call whose result had image content. A `tool_use_id` is the label that ties a tool result to the tool call that produced it.\n\n- The code that handles images and documents in tool results now treats a result as carrying an image when its `tool_use_id` is listed in `clearedImagesOf`.\n\n- That same code now treats results from any tool in a named set of tools as carrying both images and documents. Before, it only compared the tool against a short fixed list of tool names, such as `WebBrowser`.\n\n**Why**\n\nThis lets Claude Code account for images it has already stripped from tool results. In practice, it changes which tool results count as holding images or documents when that media has to be removed or replaced, for example after the API turns down an image or document.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}