Introducing Tool Retrieval in the Gemini API
Google AI
Tool Retrieval is now in preview in the Gemini Interactions API. Agents load parameter schemas on demand instead of receiving the full tool library in every prompt, which reduces input tokens and keeps tool selection accurate as the number of tools grows. To enable it, add a tool_search tool and set defer_loading to true. It works with Gemini 3.6 and later models, including all Gemini 4 models, and has no separate charge.