fetch_url
Request Bing to crawl a specific URL for indexing in search results. Submit URLs to ensure they appear in Bing search.
Instructions
Request Bing to fetch/crawl a specific URL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1233-1250 (handler)The fetch_url tool handler, registered via @mcp.tool decorator which also defines the input schema using Annotated types. It submits a fetch request to the Bing API.@mcp.tool(name="fetch_url", description="Request Bing to fetch/crawl a specific URL.") async def fetch_url( site_url: Annotated[str, "The URL of the site"], url: Annotated[str, "The specific URL to fetch"], ) -> Dict[str, str]: """ Request Bing to fetch/crawl a specific URL. Args: site_url: The URL of the site url: The specific URL to fetch Returns: Success message """ async with api: await api._make_request("FetchUrl", "POST", {"siteUrl": site_url, "url": url}) return {"message": f"Fetch request for {url} submitted successfully"}