Screenshot
screenshotCapture a browser viewport, full page, or specific element as a PNG or JPEG image the model can see. Add labeled element refs or 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.
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 |
|---|---|---|---|
| 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 |