debug_take_screenshot
Capture the current viewport or full page as a screenshot to visually debug web apps, with options for clipping, JPEG quality, and on-image annotations.
Instructions
Take a screenshot of the current viewport or full page for visual debugging
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": {
"contextId": "<contextId>"
},
"name": "debug_take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Clip the screenshot to a specific region | |
| format | No | Screenshot format | png |
| quality | No | Image quality for JPEG (0-100, only applies to JPEG format) | |
| fullPage | No | Capture the full scrollable page instead of just the viewport | |
| contextId | Yes | Browser context ID from browser_launch | |
| annotations | No | Add visual annotations to the screenshot |