get_active_page_preview_blocks
Retrieve active page preview blocks from Bing Webmaster Tools to monitor and manage how your website appears in search results.
Instructions
Get list of active page preview blocks.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1154-1175 (handler)The handler function decorated with @mcp.tool registers and implements the get_active_page_preview_blocks tool. It fetches active page preview blocks via API request to Bing Webmaster Tools.@mcp.tool( name="get_active_page_preview_blocks", description="Get list of active page preview blocks.", ) async def get_active_page_preview_blocks( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get list of active page preview blocks. Args: site_url: The URL of the site Returns: List of active page preview blocks """ async with api: blocks = await api._make_request( f"GetActivePagePreviewBlocks?siteUrl={site_url}" ) return api._ensure_type_field(blocks, "PagePreviewBlock")
- mcp_server_bwt/main.py:1159-1160 (schema)Input schema defined using Annotated type for site_url parameter and return type List[Dict[str, Any]].site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: