The problem being solved
Google has put Tool Retrieval into preview in the Gemini API’s Interactions API. The target is a cost that grows with the size of an agent’s tool library: when an agent is connected to dozens or hundreds of tools, sending every full parameter schema on every request inflates input tokens, adds latency and, Google says, lowers tool-selection accuracy as the candidate list grows.
The mechanism is deferral. A developer adds a tool_search tool to the request and sets defer_loading: true on the tools to hold back. The model still sees the name and description of every deferred tool, so it knows what is available, but the parameter schemas stay out of context. When the model wants one, it asks for it by name, the API loads the schema, and the function call happens inside the same request.

What it looks like in a trace
All three steps appear in interaction.steps: a tool_search_call naming the function, a tool_search_result carrying the loaded schema, and then the ordinary function_call. Google frames that as a debugging aid — the trace shows which tools the model considered, which is where badly worded tool names and descriptions become visible.
There is a second mode for developers who already maintain their own registry, embedding index or per-user permission filter. Declaring tool_search with "execution": "client" hands the lookup to the application, at the cost of one extra round trip per search. Because tools then do not have to be declared up front, new ones can be exposed mid-conversation — when a user connects an integration, for instance.
Deferral also works with remote MCP servers: setting defer_loading: true on an mcp_server tool loads everything that server exposes on demand, rather than listing its tools one by one.

The economics Google states
There is no separate charge for the feature. Input and output tokens bill at the model’s standard rates. Turning on tool_search adds a small fixed block of input tokens, and each schema the model loads is billed as input for the rest of the conversation, exactly as a tool declared up front would be.
That makes the saving conditional, and Google says so: you come out ahead when the schemas you never load outweigh the ones you do, “which is the usual case for large libraries”. The advice in the post is to measure it against your own traffic.
One detail matters for anyone relying on caching. Google says deferred schemas stay out of the start of the prompt and loaded ones are appended later in the conversation, so the cached prefix does not change from turn to turn.
Tool Retrieval works with Gemini 3.6 and later, including all Gemini 4 models, in the Interactions API. It is in preview, which is the usual signal that the shape of the API may still move.