WebSearch
Claude Code's built-in web search tool — returns ranked result URLs and snippets for a query.
Definition
WebSearch is Claude Code's built-in web search tool. Given a query, it returns a ranked list of result URLs with titles and short snippets, which the agent then pairs with WebFetch to read the full page content. It is how Claude Code answers questions about current docs, library versions, error messages, and external context without preloaded knowledge.
When to use
See also
- WebFetch — Claude Code's built-in tool for fetching a URL and returning its text content for the model to read.
- Claude Code — Anthropic's official terminal-based coding agent, with MCP support and a plugin ecosystem.