Anthropic rejects duplicate websearch tool names When LibreChat web search and…
- User
Anthropic rejects duplicate web_search tool names
When LibreChat web search and Anthropic-native web search are both enabled, expose one
web_searchtool and prefer LibreChat's definition. Do not affect unrelated tools or other providers.Interface
No new public interfaces are introduced.
- Assistant
I’ll trace the Anthropic tool assembly path and the repository instructions, then patch the narrowest point and run focused tests.
- Assistant
rgisn’t installed in this checkout, so I’m usingfind/grepfor the same read-only discovery. - Assistant
The collision happens where provider-native tools are merged with LibreChat-loaded agent tools. I found a second important path too: event-driven tools may exist only as definitions, so the fix must detect both representations, not just instantiated tools.
- Assistant
The focused suite is currently blocked before test execution because the local
librechat-data-providerworkspace build is missing. I’m checking the repository’s build/test wiring and will still validate the patch with the available type/lint tooling. - Assistant
The full focused initializer suite now passes, including both instantiated and event-driven LibreChat search paths. I’m doing the final static/style checks and reviewing the diff for unintended workspace changes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.