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 repository guidance first, then patch the narrow merge/deduplication point and run focused tests.
- Assistant
The conflict occurs where provider-native tools are concatenated with LibreChat’s structured tools during agent initialization. I’m narrowing the fix there so only Anthropic’s duplicate
web_searchis suppressed, with LibreChat’s tool retaining priority. - Assistant
The focused suite is currently blocked before compilation because the local
librechat-data-providerworkspace package is unresolved. I’m checking the repository’s workspace/build state, then I’ll use the least invasive local verification path. - Assistant
The targeted regression suite now passes all 37 tests, including both full-tool and definitions-only loading modes. Lint and the package TypeScript check are also clean; I’m doing the final diff review now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.