[FEATURE]: Support provider-hosted (native) web search for Anthropic, opt-in alternative to Exa/Parallel
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
The built-in websearch tool is provider-independent and always executes locally against Exa/Parallel. On the Anthropic provider this means search queries egress to Exa or Parallel (often unauthenticated) even when the model itself runs on an Anthropic API key.
For orgs with a strict "no egress beyond Anthropic + its disclosed subprocessors" policy, this makes web search unusable.
Source: packages/core/src/tool/websearch.ts explicitly notes it's "a provider-independent local tool backed by Exa or Parallel. Provider-hosted web search tools are separate and execute at the model provider."
Request
Add a config option to route web search through the model provider's native server-side search when available, instead of Exa/Parallel. For Anthropic, this means sending the web_search server tool (e.g. web_search_20250305, or the newer web_search_20260209 with dynamic filtering) in the request tools array, so the search executes at Anthropic (covered by Anthropic's subprocessor/DPA).
Something like: "websearch": { "provider": "native" } // vs "exa" | "parallel"
Why this is a small change
- The protocol layer already round-trips Anthropic server tools: packages/llm/src/protocols/anthropic-messages.ts decodes and lowers
server_tool_useandweb_search_tool_resultblocks today. - There's precedent: OpenAI Responses hosted web search is already wired up (packages/core/src/github-copilot/responses/tool/web-search.ts).
- What's missing is only (a) injecting the tool into the Anthropic request and (b) a config flag to select native vs Exa/Parallel.
Impact
Unblocks web search for security/compliance-constrained, BYOK-Anthropic users who today must disable search entirely. Ideally generalize to native Google/OpenAI search for provider parity.
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please reopen it or create a fresh new one.