Screenshot
screenshotTake a screenshot of the current page to inspect the rendered UI. Choose a CSS selector for one element, use the viewport, or capture the full page.
Instructions
Screenshot the current page and return it as a viewable image — see the actual rendered UI instead of guessing from code. Prefer selector (one element, cheapest) over the default viewport, and viewport over fullPage (priciest); use the smallest capture that answers the question. Requires navigate first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | png (default, lossless) or jpeg (smaller payload; fine for whole-page layout checks, not pixel-level detail) | |
| quality | No | JPEG quality 1-100 (default 80); ignored for png | |
| fullPage | No | Capture the full scrollable page, not just the viewport (more expensive — use only when the full layout matters) | |
| selector | No | CSS selector or Playwright locator (e.g. 'text=Submit') to capture one element only |