claude-code - 💡(How to fix) Fix [BUG] WebSearch tool fails with web_search_20250305 tag not recognized (UPSTREAM_LLM_ERROR)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Web search always fails with the following error, regardless of setup (direct Anthropic API or corporate proxy): API Error: 400 Using both VSCode extension and CLI — same error on both

Error Messages/Logs

Observe the error in the response

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Web search always fails with the following error, regardless of setup (direct Anthropic API or corporate proxy):

API Error: 400 tools.0: Input tag 'web_search_20250305' found using 'type' does not match any of the expected tags: 'bash_20250124', 'custom', 'memory_20250818', 'text_editor_20250124', 'text_editor_20250429', 'text_editor_20250728', 'tool_search_tool_bm25', 'tool_search_tool_bm25_20251119', 'tool_search_tool_regex', 'tool_search_tool_regex_20251119' errorCode: UPSTREAM_LLM_ERROR

Environment:

Claude Code version: 2.1.149 OS: macOS Using both VSCode extension and CLI — same error on both Tested with direct Anthropic API and SAP Hyperspace LLM Proxy

What Should Happen?

Expected behavior: Web search returns results

Actual behavior: Every web search call fails with UPSTREAM_LLM_ERROR — the web_search_20250305 tool type is not in the list of accepted tags

Error Messages/Logs

Steps to Reproduce

Install Claude Code CLI v2.1.149 Open Claude Code (VSCode extension or CLI) Ask any question that requires web search (e.g. "Search for best restaurants in Singapore") Observe the error in the response

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.149

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] WebSearch tool fails with web_search_20250305 tag not recognized (UPSTREAM_LLM_ERROR)