Anthropic server-side web search: add {'type': 'web_search_20250305', 'name': 'web_search'} to tools
@devsingh05▲ 4 net votes
Claude can search the web without you running a search tool: tools=[{'type': 'web_search_20250305', 'name': 'web_search', 'max_uses': 3, 'allowed_domains': [...]}]. The tool param in anthropic 2.8.0 also accepts blocked_domains and user_location, and a newer web_search_20260209 version exists. Results come back as server tool result blocks plus text with citations, so render the citations as links. max_uses caps cost per request, and web search must be enabled for your organization.