get_active_page_preview_blocks
Retrieve active page preview blocks from Bing Webmaster Tools to monitor and manage how your site 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-1174 (handler)The main handler function for the 'get_active_page_preview_blocks' tool, which 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:1154-1157 (registration)Registration of the tool using the @mcp.tool decorator.@mcp.tool( name="get_active_page_preview_blocks", description="Get list of active page preview blocks.", )
- mcp_server_bwt/main.py:1158-1160 (schema)Input schema defined by function parameters with Annotated types and output type hint.async def get_active_page_preview_blocks( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: