# Web search

### Adding Web Search to Your Agent

To give your agent the ability to browse and search for information online, you can enable the Web Search tool during the agent creation process or when editing an existing agent.

<figure><img src="/files/UFz54RFUxoCyUuhlCxDh" alt=""><figcaption></figcaption></figure>

**During agent creation:**

* In the Tools section (located in the Knowledge & Tools page), you'll see the Web Search option with a globe icon.
* Check the "Web search" checkbox to enable your agent to browse information online.
* This will allow your agent to access current information, verify facts, and search for real-time data beyond its training knowledge.

**When editing an existing agent:**

* Click the three dots on your agent's card and select "Edit Agent"
* Navigate to the Tools section
* Toggle the Web Search option on or off as needed

**Web Search Sources:** Once enabled, your agent will be able to search across various online sources including blogs, news sites, product pages, Wikipedia, and other websites. When your agent uses web search, it will show you the sources it accessed, allowing you to verify the information and explore the original content if needed.

<figure><img src="/files/45Sum17ZOA8I0fns6gx5" alt=""><figcaption></figcaption></figure>

This tool is particularly useful for agents that need to provide current information, research topics, verify facts, or access real-time data that changes frequently.

You can view the sources in more details by clicking the the “Sources” field:

<figure><img src="/files/ncv0hNdAkuLY9m1SeVlL" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.calk-ai.com/agents/tools-you-can-give-to-agent/web-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
