Screenshot
screenshotCapture the current viewport, full page, or a specific element as an image. Optionally overlay element reference labels and a coordinate grid for precise visual analysis.
Instructions
Capture the viewport, the full page, or one element. Set annotate=true to draw element refs as labeled boxes and grid=true for a 100px coordinate grid. Returns an image the model can see.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Capture a specific element by ref. | |
| grid | No | Draw a 100px coordinate grid. | |
| tabId | No | ||
| format | No | png | |
| frameId | No | ||
| quality | No | ||
| timeout | No | ||
| trusted | No | Force CDP on/off for this capture. | |
| annotate | No | Draw boxes/labels for element refs. | |
| fullPage | No | Capture the entire scrollable page. | |
| maxWidth | No | ||
| selector | No | Capture a specific element by CSS selector. | |
| maxHeight | No |