Screenshot
screenshotCapture a screenshot of the current page to view the rendered UI. Choose between full page, viewport, or a specific element using a CSS selector.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot"
}
}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 |