Google previews Gemini API Tool Retrieval, which loads tool details on demand
Gemini API's Tool Retrieval can cut input tokens for agents with many tools, but each search resends the full context.
Google previewed Tool Retrieval in Gemini's Interactions API. In Google's illustrative 200-tool example, input drops from 164,000 to about 23,650 tokens. But few tools, a long context and a search on almost every request can make it cost more.