screenshot
Capture full page, viewport, element screenshots or print to PDF using Chrome or WeasyPrint engines for visual verification.
Instructions
Visual verification only. Use extractText for content. Actions: fullPage (full page screenshot), viewport (viewport screenshot), element (element screenshot), pdf (print to PDF with Chrome or WeasyPrint engines)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"connectionReason": "<connectionReason>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Region to capture | |
| type | No | ||
| scale | No | Page scale 0.1-2 | |
| action | Yes | ||
| engine | No | ||
| baseUrl | No | ||
| quality | No | JPEG quality 0-100 | |
| timeout | No | Timeout ms | |
| fullPage | No | ||
| selector | No | CSS selector. Supports :has-text(), :text() | |
| landscape | No | ||
| mediaType | No | ||
| saveToDisk | No | Output path | |
| stylesheets | No | ||
| paperWidthCm | No | ||
| paperHeightCm | No | ||
| optimizeImages | No | ||
| printBackground | No | ||
| connectionReason | Yes | ||
| autoSaveThreshold | No | Auto-save bytes threshold |