All news

Gemini API gets Tool Retrieval in preview — loading tool schemas on demand

Prepared by Sintelligent with the help of SI. Published in SI: . Updated: .

Agents on Gemini will be able to keep only the tools they need right now in context: a compact deferred-tool entry takes about 26 input tokens.

Tool Retrieval has appeared in the Gemini API, currently in preview in the Interactions API. A developer adds the tool_search tool and sets defer_loading: true on functions whose schemas are not needed right away. The model sees the names and descriptions of deferred tools, and full parameter schemas enter the context only on request. Loading happens within the same API call. There is no separate charge for Tool Retrieval — billing uses standard model rates, and each loaded schema counts as input for the rest of the conversation. The feature works with Gemini 3.6 and newer, including all Gemini 4 models, and supports deferred loading for remote MCP servers and a client-side search mode.

Sources 1