browser_screenshot
Capture a screenshot of the current browser page as a PNG image. Supports full-page, element-specific, or region-based shots for visual debugging and layout verification.
Instructions
Take a screenshot of the current browser page. Returns the file path to a saved PNG image. Screenshots are slow and heavy — prefer browser_get_dom and browser_get_page_info to understand page content and structure. Use screenshots only when you need to verify visual layout, debug rendering issues, or when DOM inspection is insufficient (e.g. canvas, images, charts). The response includes a pageRect describing which page-coordinate region the image depicts. To zoom into fine detail (especially after a full-page shot), call again with rect:{x,y,width,height} narrowed to a sub-region of that pageRect — coordinates are page CSS pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | Page-coordinate rectangle to capture at full CSS resolution. Use this to zoom into a region returned in a prior screenshot's pageRect. | |
| fullPage | No | Capture full scrollable page instead of just viewport | |
| selector | No | CSS selector to screenshot a specific element |