remove_page_preview_block
Remove page preview blocks from Bing Webmaster Tools to control how your site appears in search results. Specify site and block URLs to manage search appearance.
Instructions
Remove a page preview block.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| block_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1177-1199 (handler)The handler function implementing the 'remove_page_preview_block' tool. It is registered via the @mcp.tool decorator and handles the logic by calling the Bing Webmaster API's RemovePagePreviewBlock endpoint with the provided site_url and block_url parameters.@mcp.tool(name="remove_page_preview_block", description="Remove a page preview block.") async def remove_page_preview_block( site_url: Annotated[str, "The URL of the site"], block_url: Annotated[str, "URL pattern to unblock"], ) -> Dict[str, str]: """ Remove a page preview block. Args: site_url: The URL of the site block_url: URL pattern to unblock Returns: Success message """ async with api: await api._make_request( "RemovePagePreviewBlock", "POST", {"siteUrl": site_url, "blockUrl": block_url}, ) return {"message": f"Page preview block for {block_url} removed successfully"}