Screenshot
browser_screenshotCapture JPEG screenshots of pages or elements to verify layout, styling, and rendering issues, while offering faster text-based alternatives for content checks.
Instructions
Captures a JPEG of the page or an element. Use this only for genuinely visual questions (layout, styling, rendering); browser_snapshot and browser_read_text are faster and cheaper for finding and verifying content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector, as an alternative to ref. | |
| ref | No | Element ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". Combine with name for an accessible-name match. | |
| index | No | Which match to use when the selector is ambiguous (0-based, default 0). | |
| fullPage | No | Capture the full scrollable page. | |
| sessionId | Yes | Session id returned by browser_start. |