Google AI Announces Tool Retrieval in the Gemini API
2 min read
- Google AI
- Gemini API
- developer tools
- AI agents

Google AI has announced the preview release of Tool Retrieval in the Gemini Interactions API. The new capability lets developers’ agents keep a large library of tools on standby and load each tool’s parameter schema only when it is needed for a specific task. By avoiding the transmission of full tool definitions on every request, the feature aims to cut input token counts, lower latency, and improve tool‑selection accuracy as agents scale to hundreds of tools.
What’s new
- On‑demand schema loading – Agents can defer loading of tool parameter schemas until the model actually needs to invoke the tool.
- Reduced token usage – Only the tool name and description are sent in the prompt; full schemas are fetched later, saving input tokens.
- Lower latency – Skipping unnecessary schema data speeds up request processing, especially for complex tasks that involve many potential tools.
- Simple activation – Enable the feature by adding a
tool_searchentry to the request and settingdefer_loading: trueon the tools you want to postpone. - Compatibility – Tool Retrieval works with Gemini 3.6 and later models in the Interactions API.
Why it matters
Developers building AI agents often need to integrate dozens or even hundreds of external tools—ranging from data retrieval functions to payment processors. Traditionally, each request to the Gemini API had to include the full parameter schema for every tool, which quickly inflates the number of input tokens. Higher token counts increase cost and can introduce latency, making real‑time or resource‑constrained applications less responsive.
Tool Retrieval addresses these challenges by allowing the agent to maintain a “standby” list of tools. The model still knows each tool’s name and description, preserving its ability to select the appropriate function. When the model decides a particular tool is required, the API fetches the full schema within the same request, enabling the function call without additional round‑trips. This approach not only reduces data transmitted per request but also keeps the model’s context focused, which can improve the accuracy of tool selection as the candidate list grows.
For students and developers experimenting with multi‑tool agents, the preview offers a straightforward way to test larger toolsets without incurring the token overhead that previously limited scalability. By lowering both cost and latency, Tool Retrieval can make more ambitious applications—such as complex workflow automation, real‑time data analysis, or interactive tutoring systems—feasible on the Gemini platform.
Developers can start using Tool Retrieval today by adding a tool_search tool to their request payload and marking the desired tools with "defer_loading": true. The Gemini API will handle schema retrieval automatically, keeping the interaction seamless for the developer.