You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add Anthropic tool_search_tool_bm25_20251119 for lazy loading
Add support for Anthropic's Advanced Tool Use standard by implementing
the tool_search_tool_bm25_20251119 tool alongside existing retrieve_tools.
This tool name is fine-tuned into Claude models for on-demand tool
discovery. Returns tool_reference content blocks per Anthropic's custom
implementation format, enabling lazy loading of tools.
Key changes:
- Add tool_search_tool_bm25_20251119 tool registration
- Implement handleToolSearchBM25 handler with BM25 search
- Return tool_reference format: [{"type":"tool_reference","tool_name":"..."}]
- Fixed 5-result limit per Anthropic standard
- Full activity logging (Spec 024)
References:
- https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool
- https://www.anthropic.com/engineering/advanced-tool-useCloses: anthropics/claude-code#7336
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments