TUESDAY, NOVEMBER 24, 2026 Tech news, minus the noise.
N News Cast
LATEST
Home  /  Dev
Dev

Google's Gemini Tool Retrieval Lets Agents Pick Tools Without Burning Your Context Window

Google launched Tool Retrieval in preview for the Gemini Interactions API, letting agents load tool schemas on demand instead of stuffing every prompt.

Google's Gemini Tool Retrieval Lets Agents Pick Tools Without Burning Your Context Window
Source: Markus Spiske via Unsplash (CC0)

Gemini Tool Retrieval Is in Preview

Google launched Tool Retrieval in preview for the Gemini Interactions API on November 19, 2026, and it solves a problem every agent developer has hit. Until now, if your agent could call 200 tools, you had to describe all 200 tools in every prompt, burning context window and money on schemas the model would never use. Tool Retrieval loads each tool's parameter schema on demand, only when the model actually needs it.

The feature works on Gemini 3.6 and later, including all Gemini 4 models such as Gemini 4 Neon and Gemini 4 Hydrogen. It is available in the v1beta Gemini Interactions API through Google AI Studio and the standard API endpoints. Google charges no separate fee beyond standard model input and output token rates.

How Gemini Tool Retrieval Works

The setup is small, which is the point. Developers add a tool_search entry to the tools array and set defer_loading to true on any function declaration they want held back from the initial prompt context. They can also add an optional short description to help the retriever pick the right tool. When the model needs a tool, the schema loads inside the same Interactions API call.

There are two modes. Server-managed retrieval lets Google handle the selection. Client-managed retrieval gives the developer control over the flow. The feature also supports remote MCP servers, so tools exposed through the Model Context Protocol can be deferred the same way as local functions. That matters because MCP is becoming the standard way to give agents access to external systems, and large MCP catalogs have the same context problem.

The launch was announced by product manager Lucia Loher and DeepMind research scientist Nora Kassner. The timing is deliberate: it arrives a week after Google launched the Gemini Decisions API, which gives developers a model for bounded yes-or-no judgments with confidence estimates. Together, the two releases show Google building the plumbing for agents that make many small decisions across many tools, rather than one big decision in one prompt.

Why This Matters More Than It Looks

Context windows have grown enormously, and it is tempting to think the problem is solved. It is not. A 1M-token context window sounds huge until your agent has 500 tools, each with a JSON schema, plus conversation history, plus retrieved documents, plus the actual task. Tool definitions are the quietest context hog in agent systems, because they are pure overhead: tokens you pay for on every single call, whether the tool gets used or not.

Tool Retrieval changes the economics. Instead of paying to describe every tool on every request, you pay for a short description and the full schema only when the tool is actually selected. For agents with large catalogs, that is a large saving, and it also leaves more room in the context window for the work itself.

There are limits worth knowing. Tool Retrieval works in the Interactions API, not in generateContent, so teams on the older endpoint need to migrate. It is in preview, which means the API shape could still change. And prefix caching implications mean you should test how deferred schemas interact with your caching setup before assuming the savings are free.

What Developers Should Do Now

If you build agents on Gemini, try Tool Retrieval on your largest tool catalog first, because that is where the savings are biggest. Measure the token difference per request before and after, and measure latency too, since on-demand schema loading adds a step to the call. If your agent only has a handful of tools, this feature will not change much for you, and that is fine. It is built for the teams whose tool lists grew faster than their context windows.

The broader trend is worth watching. Five open-source agent frameworks shipped releases in the same week, and they all fixed the same problem: crash recovery, restart safety, and upgrade paths. The agent ecosystem is moving from demos to production, and production means boring infrastructure like tool retrieval, schema caching, and failure handling. Google is betting that the developers who win the agent race will be the ones whose plumbing holds up, and Tool Retrieval is plumbing. If you are building agents with VS Code's new agent features or the open-source agent frameworks that shipped this month, this is the week to test whether your tool catalog still fits in your prompt, or whether it is time to let the model fetch what it needs.

AS
News Cast Editorial Team

We cover AI, gadgets, startups and security — original reporting and explainers, written by humans, for humans. Got a tip? Reach us via the contact page.