{"version":"2.1.333","anchor":"tool-result-clearing-caches-its-scan-and-can-clear-pdf-page","canonical_anchor":"tool-result-clearing-caches-its-scan-and-can-clear-pdf-page","heading":"Tool-result clearing can now drop PDF page texts and scans more cheaply","tier":"notice","area":"Context Management","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/tool-result-clearing-caches-its-scan-and-can-clear-pdf-page","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Tool-result clearing can now drop PDF page texts and scans more cheaply\n\nContext clearing can now remove the text of PDF pages Claude read, reports it with the request, and no longer rescans every message each time\n\n**Unclear.** Whether clearing PDF page text is turned on by default is not stated.\n\n**What**\n\nThe context is everything Claude has in view during a conversation. When a session sits idle, Claude Code can clear old tool results out of the context. A tool result is the output Claude gets back after using a tool, such as reading a file. This clearing now handles text taken from PDFs:\n\n- `mayClearPdfPageTexts` is a new option that lets the clearing scan handle attachments from reading a PDF.\n\n- `clearsPdfPageTexts` is a new output field that says page texts from a PDF were cleared.\n\n- `client_cleared_pdf_page_texts` is now added to the request sent to the model when `clearsPdfPageTexts` is set. Before, only cleared connector results and screen results were reported this way.\n\n- A set `clearsPdfPageTexts` also counts toward sending `client_sent_exclude_tools`.\n\nThe scan also caches its state between calls. Tool results from before the latest response are scanned bit by bit as new messages arrive, instead of every message being scanned again each time.\n\n**Why**\n\nIn long sessions where Claude has read PDFs, the page text can now be cleared from the context like other old tool results, which frees room. Because the scan no longer starts over every time, clearing should also cost less work as a session grows.\n\n- Area: Context Management\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}