(
url: Annotated[str, "Root URL to begin the mapping (e.g., 'https://docs.example.com')."],
instructions: Annotated[str, "Natural language instructions for the crawler to filter or focus on specific content."] = "",
max_depth: Annotated[int, Field(description="Maximum depth of mapping from the base URL.", ge=1, le=5)] = 1,
max_breadth: Annotated[int, Field(description="Maximum number of links to follow per page.", ge=1, le=500)] = 20,
limit: Annotated[int, Field(description="Total number of links to process before stopping.", ge=1, le=500)] = 50,
timeout: Annotated[int, Field(description="Maximum time in seconds for the operation.", ge=10, le=150)] = 150
)
| 426 | meta={"version": "1.3.0", "author": "guda.studio"}, |
| 427 | ) |
| 428 | async def web_map( |
| 429 | url: Annotated[str, "Root URL to begin the mapping (e.g., 'https://docs.example.com')."], |
| 430 | instructions: Annotated[str, "Natural language instructions for the crawler to filter or focus on specific content."] = "", |
| 431 | max_depth: Annotated[int, Field(description="Maximum depth of mapping from the base URL.", ge=1, le=5)] = 1, |
| 432 | max_breadth: Annotated[int, Field(description="Maximum number of links to follow per page.", ge=1, le=500)] = 20, |
| 433 | limit: Annotated[int, Field(description="Total number of links to process before stopping.", ge=1, le=500)] = 50, |
| 434 | timeout: Annotated[int, Field(description="Maximum time in seconds for the operation.", ge=10, le=150)] = 150 |
| 435 | ) -> str: |
| 436 | result = await _call_tavily_map(url, instructions, max_depth, max_breadth, limit, timeout) |
| 437 | return result |
| 438 | |
| 439 | |
| 440 | @mcp.tool( |
nothing calls this directly
no test coverage detected