Skip to content
BENIBIX Learn

WebSearch Tool

AI⌨️ Claude CodeBuilt-in Tools

Also known as WebSearch, Claude Code web search

The tool that searches the web and returns titles and links.

Think of it like

It is like looking up a topic in a library card box. You get titles, not the books.

Example

Jack hits an error he has never seen. Claude searches for the message, finds a bug report, then fetches the page to read the fix.

Why it matters

It lets Claude find facts that are newer than what it learned.

Definition

The WebSearch tool searches the web and returns the titles and links of the results. It does not open the pages. To read one, Claude follows up with WebFetch. One call can run several searches behind the scenes to sharpen the results. An interactive session has a limit of 200 searches. Its rule has no pattern: you allow or deny WebSearch as a whole.

Example code

json
{"permissions": {"deny": ["WebSearch"]}}
Turn web search off for this project.
WebSearch finds the links. WebFetch reads one.

Common mistake

Expecting search results to hold the answer. They are only titles and links, so the page still has to be read.

Key takeaways

  1. 1
    Titles and links. Not pages.
  2. 2
    Then WebFetch. To read one.
  3. 3
    One rule. Allow or deny it all.

Compare

Learn it properly