TL;DR

Between November 19 and November 25, 2026, Google DeepMind, Cloudflare, and Anthropic shipped four primitives that replace eager prompt stuffing with lazy agent retrieval: Gemini Interactions API Tool Retrieval (defer_loading: true), Gemini File Slicing Controls for metered PDF, Office, and media slices, Cloudflare Search for Agents (/.well-known/search) serving ranked Markdown chunks, and Claude Code v2.1.332 on-demand MCP skills with pre-execution hooks.

Most production AI agents still load context the brute-force way: dump every tool's JSON schema into the system prompt, upload entire 90-page PDFs or Excel workbooks up front, and scrape raw HTML pages into memory before the model answers a single question. Even with 1-million-token context windows and 95% prompt caching, eager loading inflates first-turn latency, pushes irrelevant parameter schemas into attention, and forces teams to pay for pages the agent never inspects.

Between November 19 and November 25, 2026, Google DeepMind, Cloudflare, and Anthropic shipped four complementary primitives that flip agent architecture from eager stuffing to lazy, on-demand retrieval: Gemini API Tool Retrieval, Gemini API File Slicing Controls, Cloudflare Search for Agents, and Claude Code v2.1.332 MCP Skills.

Why Does Eager Prompt Stuffing Break Agent Budgets?

Stuffing everything into turn one breaks down in three distinct places as an agent grows beyond small prototypes:

  1. Tool Schema Bloat: An enterprise assistant wired to 80 internal APIs or MCP servers can burn tens of thousands of input tokens just describing tool parameters before the user types a question. Worse, too many overlapping schemas degrade tool-selection accuracy.
  2. Whole-File Ingestion Waste: When an agent only needs Sheet 3 (B2:F40) of an .xlsx workbook or pages 14–18 of a .pdf, converting and feeding all 120 pages wastes tokens and pollutes context with unrelated tables.
  3. HTML Scraping Overhead: Fetching full marketing websites forces agents to strip navigation chrome, scripts, and footers on every crawl—and often triggers bot defenses when headless scrapers hammer origin servers.

What Did Google, Cloudflare, and Anthropic Ship for Lazy Context?

PrimitiveVendor & Release DateWhat Stays Lazy Until NeededCost & Security Advantage
Tool Retrieval (defer_loading: true)Google DeepMind (Nov 19, 2026)Full JSON parameter schemas inside Gemini Interactions APIModel sees names/descriptions; loads heavy schemas via tool_search only when called
File Slicing ControlsGoogle DeepMind (Nov 23, 2026)Uninspected PDF/Office pages, Excel cell ranges, video/audio spansNative .docx, .xlsx, .pptx, OpenDocument via Files API URI; billed strictly per inspected slice
Search for Agents (/.well-known/search)Cloudflare (Nov 25, 2026)Unneeded website pages behind a domain's AI Search indexGET / HTTP QUERY returns ranked Markdown chunks with scores under WAF & AI Crawl Control
MCP Server Skills (server:skill)Anthropic Claude Code v2.1.332 (Nov 25, 2026)External MCP server skill prompts & shell actionsLoaded on / invocation with PreSkillShellCommand pre-execution hooks

How Does Gemini API Tool Retrieval (defer_loading: true) Work?

Announced on November 19, 2026 by Google DeepMind for the Gemini Interactions API (supporting Gemini 3.6 and Gemini 4 models), Tool Retrieval separates tool awareness from schema loading.

Instead of injecting 100 full parameter definitions on turn one, developers attach the built-in tool_search capability and flag rarely used or heavy tools with defer_loading: true. The model retains a compact directory of tool names and short descriptions so it knows what actions exist. Only when a user's prompt genuinely requires a specific capability—such as a billing refund or ticket migration—does the model invoke tool_search, pull the exact JSON parameter definition into context, and execute the call.

Paired with Anthropic's Claude Code v2.1.332—which surfaces beta MCP server skills under server:skill in the slash menu and guards shell calls through PreSkillShellCommand hooks—agents gain access to broad tool ecosystems without paying a permanent per-turn token tax.

How Do Gemini API File Slicing Controls Meter Only Inspected Pages?

Four days later, on November 23, 2026, Google DeepMind shipped file slicing controls in the Gemini API across Google AI Studio and Vertex AI. The release adds native support for Microsoft Office (.docx, .xlsx, .pptx) and OpenDocument formats alongside PDFs through reusable Files API URIs.

Rather than pre-parsing Office documents into brittle custom text scripts, agents request exact server-side slices:

  • Documents & Slides: Inclusive page ranges, resolution tiers (low, medium, high), and either extracted text or rendered page images.
  • **Spreadsheets (.xlsx):** Specific sheet indices and A1-style cell ranges (A1:G45), returning data, raw formulas, or embedded charts.
  • Video & Audio: Precise start and end time offsets, custom frame rates, and isolated tracks (transcripts, frames, or audio).

Crucially, files upload once via the Files API and can be re-sliced across turns—and billing applies only to the slices and tokens the model actually inspects.

How Does Cloudflare /.well-known/search Serve Ranked Markdown?

On November 25, 2026, Cloudflare introduced Search for Agents in beta across all plans (including Free, subject to AI Search limits). Flipping one toggle in the Cloudflare dashboard provisions an AI Search index for the domain, injects discovery metadata into HTML headers, and exposes a native endpoint at https://<domain>/.well-known/search.

Unlike a site-owned chatbot that burns tokens generating prose answers, /.well-known/search acts as a clean retriever accepting both standard GET and HTTP QUERY requests. It returns ranked Markdown chunks complete with source citations and relevance scores—working alongside Cloudflare's Markdown for Agents converter—while remaining governed by the site's existing WAF, bot management, and AI Crawl Control rules.

When Should Builders Keep Tools Inline Instead of Deferring?

Lazy context is not free. Every deferred tool_search, file slice request, or /.well-known/search query adds an extra network or model round-trip before the agent emits its final answer.

  • Keep small, hot toolsets inline: If an agent uses 3 to 6 core tools on 90% of requests, keep those schemas pinned at the top of the prompt so 90%–95% prefix prompt caching handles them in a single forward pass.
  • Defer the long tail and heavy payloads: Apply defer_loading: true, server-side file slicing, and /.well-known/search to large tool catalogs (20+ tools), multi-megabyte Office/PDF attachments, and multi-page documentation sites.

What Config Pattern Combines Tool Retrieval and File Slicing?

{
  "agent_context_policy": {
    "always_loaded_tools": ["read_file_slice", "ripgrep_search", "run_tests"],
    "deferred_tools": {
      "defer_loading": true,
      "discovery_tool": "tool_search",
      "max_loaded_per_turn": 4
    },
    "file_slicing": {
      "upload_via": "files_api_uri",
      "default_pdf_resolution": "low",
      "escalate_resolution_on_charts": "high",
      "spreadsheet_mode": "a1_range_with_formulas"
    },
    "web_discovery": [
      "/.well-known/search",
      "/llms.txt",
      "/llms-full.txt"
    ]
  }
}

What Should Teams Change Today?

  • Audit your prompt prefix for tool-schema bloat: Count how many tokens your active agent spends on tool definitions before any user message; mark rarely invoked tools defer_loading: true while keeping your 3–5 daily core tools inline for prompt caching.
  • **Stop dumping whole .xlsx and .pdf files into chat context:** Switch multimodal inspection pipelines to Files API URIs with explicit page ranges, low preview resolution first, and A1 cell slicing so you only pay for inspected slices.
  • Expose machine-readable discovery on your own domain: Pair /llms.txt, .md article twins, and /.well-known/search (via Cloudflare Search for Agents or your own search index) so external AI agents retrieve clean cited Markdown instead of scraping HTML.

Key Facts

  • On November 19, 2026, Google DeepMind introduced Tool Retrieval in the Gemini Interactions API (Gemini 3.6 and Gemini 4): developers add tool_search and mark tools with defer_loading: true so the model sees tool names and descriptions without loading full parameter schemas until needed. (Source)
  • On November 23, 2026, Google DeepMind launched file slicing controls in the Gemini API across PDFs, Microsoft Office (.docx, .xlsx, .pptx), and OpenDocument files, letting agents request specific page ranges, A1 spreadsheet cell ranges, or video/audio timestamps and pay only for inspected slices. (Source)
  • On November 25, 2026, Cloudflare introduced Search for Agents in beta across all plans, exposing https://<domain>/.well-known/search (via GET and HTTP QUERY) that returns ranked Markdown chunks with source references and relevance scores under existing WAF and AI Crawl Control rules. (Source)
  • On November 25, 2026, Anthropic's Claude Code v2.1.332 added beta MCP server skills (server:skill in the slash menu) paired with PreSkillShellCommand hooks so external server skills load on invocation rather than bloating every turn. (Source)

Frequently Asked Questions

What does defer_loading: true do in the Gemini Interactions API?

Introduced on November 19, 2026 for Gemini 3.6 and Gemini 4 models, defer_loading: true hides heavy JSON parameter schemas from the initial prompt while keeping tool names and short descriptions visible. When the model needs a deferred tool, it calls the built-in tool_search capability to fetch the exact schema on demand.

How does Gemini API File Slicing reduce document and spreadsheet token costs?

Shipped on November 23, 2026 for PDFs, Microsoft Office (.docx, .xlsx, .pptx), and OpenDocument files, file slicing lets agents upload a file once via the Files API and request only specific page ranges, low/medium/high resolutions, A1 spreadsheet cell ranges, or media time intervals—billing strictly for the slices inspected.

How does Cloudflare /.well-known/search work for AI agents?

Announced in beta on November 25, 2026 across all Cloudflare plans, Search for Agents provisions an AI Search index for a domain and serves ranked Markdown chunks with relevance scores and source links at https://<domain>/.well-known/search via GET or HTTP QUERY under existing WAF and AI Crawl Control policies.

When should builders keep tool schemas inline instead of deferring them?

Keep 3 to 6 high-frequency core tools inline at the top of the prompt so prefix prompt caching handles them in a single turn without extra round-trips, and reserve defer_loading: true, file slicing, and /.well-known/search for large 20+ tool catalogs and multi-megabyte files.

Primary Sources