[BUG] Web search tool broken: 'web_search_20250305' tag rejected by API
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code Version: 2.1.226
OS: macOS 25.6.0
Platform: Desktop/CLI
Problem:
Web search returns an API error instead of results.
Error message:
Input tag 'web_search_20250305' found using 'type' does not match any
of the expected tags: bash_20250124, memory_20250818, text_editor_20250124,
text_editor_20250429, text_editor_20250728
Steps to reproduce:
Any prompt that triggers a web search (e.g. "search for X")
Expected: Search results
Actual: API 400 error
What Should Happen?
Claude Code Version: 2.1.226
OS: macOS 25.6.0
Platform: Desktop/CLI
Problem:
Web search returns an API error instead of results.
Expected: Search results
Actual: API 400 error
Error Messages/Logs
**Error message:**
Input tag 'web_search_20250305' found using 'type' does not match any
of the expected tags: bash_20250124, memory_20250818, text_editor_20250124,
text_editor_20250429, text_editor_20250728
Steps to Reproduce
Steps to reproduce:
Any prompt that triggers a web search (e.g. "search for X")
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.226
Platform
Other
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_