browser_screenshot
Take PNG or JPEG screenshots of browser tabs (viewport, fullPage, elementRef) even when the tab is in the background. Supports automated web testing and visual verification.
Instructions
PNG/JPEG screenshot of the session tab (CDP-based; works whether the tab is foreground or background). Modes: viewport (default), fullPage, elementRef.
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": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fullPage | No | ||
| elementRef | No | ||
| format | No | png | |
| tabId | No |