Tavily is a search engine built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed. Tavily offers a Map endpoint that traverses websites and returns a list of discovered URLs without extracting page content, which is ideal for understanding site structure or locating specific pages on a large site.Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Integration details
| Class | Package | Serializable | JS support | Version |
|---|---|---|---|---|
TavilyMap | langchain-tavily | ✅ | ✅ |
Tool features
| Returns artifact | Native async | Return data | Pricing |
|---|---|---|---|
| ❌ | ✅ | list of discovered URLs | 1,000 free credits / month |
Setup
The integration lives in thelangchain-tavily package.
Credentials
We also need to set our Tavily API key. You can get an API key by visiting this site and creating an account.Instantiation
The tool accepts the following parameters during instantiation:max_depth(optional, int): Maximum number of hops from the starting URL. Default is 1.max_breadth(optional, int): Maximum number of URLs returned per level. Default is 20.limit(optional, int): Maximum total number of URLs to return. Default is 50.instructions(optional, str): Natural-language instructions that guide the map traversal.select_paths(optional, list[str]): Only include URLs containing these path regexes.select_domains(optional, list[str]): Only include URLs from these domain regexes.exclude_paths(optional, list[str]): Skip URLs containing these path regexes.exclude_domains(optional, list[str]): Skip URLs from these domain regexes.allow_external(optional, bool): Allow the map to follow external links.
Invocation
Invoke directly with args
The Tavily map tool accepts the following arguments during invocation:url(required): The base URL to start mapping from.- The following arguments can also be set during invocation:
instructions,select_paths,select_domains,exclude_paths,exclude_domains,allow_external.
Invoke with ToolCall
We can also invoke the tool with a model-generated ToolCall, in which case a ToolMessage will be returned:Use within an agent
We can use the map tool directly with an agent by binding it to the model. The agent can then dynamically set instructions and filters to discover the URLs it needs.API reference
For detailed documentation of all Tavily Map API features and configurations head to the API reference: docs.tavily.com/documentation/api-reference/endpoint/mapConnect these docs to Claude, VSCode, and more via MCP for real-time answers.

