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