MCPcopy Create free account
hub / github.com/GuDaStudio/GrokSearch / web_map

Function web_map

src/grok_search/server.py:428–437  ·  view source on GitHub ↗
(
    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
)

Source from the content-addressed store, hash-verified

426 meta={"version": "1.3.0", "author": "guda.studio"},
427)
428async 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(

Callers

nothing calls this directly

Calls 1

_call_tavily_mapFunction · 0.85

Tested by

no test coverage detected