Gemini API previews Tool Retrieval, loading tool schemas only when an agent needs them
Google has released Tool Retrieval in preview in the Gemini Interactions API. Agents can keep large tool libraries on standby and load a tool's full parameter schema only when a task calls for it. Google says this reduces input tokens and latency.
Why it matters
Developers enable it by adding a tool_search tool to a request and setting defer_loading to true on the tools they want to hold back. The model still sees each deferred tool's name and description, asks for a tool by name when needed, and the API loads the schema and runs the call inside the same request. The same flag on a remote MCP server defers every tool that server exposes.
According to the documentation, the feature requires the v1beta API version, works only in the Interactions API and not in generateContent, and the interface may change before general availability. Listed models include Gemini 4 Carbon, Neon, Hydrogen and Argon, plus Gemini 3.8 Flash and 3.6 Flash.
Google says there is no separate charge, but each server-side search triggers an extra model call billed at the input rate, and loaded tools stay in context for the rest of the conversation. The docs recommend loading tools up front for fewer than 20 stable tools, and keeping the most used tools loaded while deferring the rest.