> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Web search

> External web search tool for ClickHouse Agents

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

export const galaxyOnClick = eventName => () => {
  try {
    if (typeof window !== "undefined" && window.galaxy && eventName) {
      window.galaxy.track(eventName, {
        interaction: "click"
      });
    }
  } catch (e) {}
};

export const BetaBadge = ({link, galaxyTrack, galaxyEvent}) => {
  if (link) {
    return <a href={link} target="_blank" rel="noopener noreferrer" className="betaBadge" onClick={galaxyTrack && galaxyEvent ? galaxyOnClick(galaxyEvent) : undefined}>
                <Icon />
                <span>Beta</span>
            </a>;
  }
  return <div className="betaBadge">
            <Icon />
            <span>
                Beta feature. 
                <u>
                    <a href="/docs/beta-and-experimental-features#beta-features">
                        Learn more.
                    </a>
                </u>
            </span>
        </div>;
};

Web search lets an agent fetch information from the public web during a conversation. Use it for questions where the answer needs to be current — recent releases, documentation that lives outside your service, or a quick check against an authoritative source.

<h2 id="enable-it">
  Enable it
</h2>

In the Agent Builder, enable **Web Search** in the **Capabilities** section. Once enabled, the agent decides when to issue a search based on the user's question and the agent's instructions. The search runs, results are scraped, and the most relevant content is passed back into the model context.

<Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/ie2pnLZPTjmhniJm/images/cloud/agent-builder/web-search/web-search.webp?fit=max&auto=format&n=ie2pnLZPTjmhniJm&q=85&s=d3de7f51cae5bde87ef900868678b672" alt="Capabilities panel with the Web Search section highlighted, showing the Web Search checkbox" size="sm" width="616" height="1412" data-path="images/cloud/agent-builder/web-search/web-search.webp" />

<h2 id="how-a-search-round-works">
  How a search round works
</h2>

Each search runs in three stages, managed for you in Cloud:

1. **Search** - the agent's query goes to a search provider that returns candidate URLs.
2. **Scrape** - relevant pages are fetched and the meaningful text is extracted.
3. **Rerank** - a reranker scores results so the model sees the most useful ones first.

The agent's response cites the URLs it actually used.

<h2 id="when-to-use-it">
  When to use it
</h2>

* Look up release notes or changelogs not in your service.
* Verify a fact against a source the model may not know.
* Pull a public blog post or doc into the conversation for analysis.

Skip it for questions that can be answered from your data or the model's own knowledge. Each search round adds latency.
