ProductsOfficial

Gemini API 推出 Tool Retrieval 预览版,降低智能体工具调用成本

Introducing Tool Retrieval in the Gemini API

Why we picked it

做智能体的朋友可以关注:Gemini API 新增 Tool Retrieval,工具多到几百个时不用再把全部定义塞进 prompt,模型会自动检索相关的,token 费用能省不少。比起自己维护工具路由要省事,挂载大量 MCP 工具的人可以先试试预览版。

Google 在 Gemini API 中以预览版形式推出 Tool Retrieval 功能,让智能体可以接入数百个工具,同时消耗更少的 token。

Body

其工作方式是:API 不再把全部工具定义一次性塞进上下文,而是根据用户请求动态检索出最相关的工具,只把选中的工具定义发给模型。当智能体挂载的工具数量达到数百个时,这种方法能显著减少每次调用占用的 token 数量。

对于开发者来说,这意味着构建工具丰富的智能体时,上下文成本不再随工具数量线性增长。与手动管理工具列表的做法相比,Tool Retrieval 把检索环节下沉到了 API 层,适合工具集庞大、调用频繁的生产场景。

Original · Google Blog: AI

Introducing Tool Retrieval in the Gemini API

Give your agents access to hundreds of tools while using fewer tokens with Tool Retrieval, now in preview in the Gemini API.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Gemini API, Tool Retrieval, Google, MCP and tools.

Primary source verification: published directly by Google Blog: AI with first-party authority.