browser_screenshot
Capture a browser tab's viewport, full page, or specific element as a PNG for visual verification, debugging, or documentation.
Instructions
Capture viewport, full_page or one ref/selector element as PNG with image-to-viewport CSS mapping. Element/full_page are exclusive. Full-page points may need scrolling before input. If background rendering stalls, explicitly activate or use AX/text.
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": {
"tab_handle": "<tab_handle>"
},
"name": "browser_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Zero-based match index. | |
| ref | No | ||
| name | No | Exact AX name; role only. | |
| frame | No | Child frame; see shared locator rules. | |
| frame_id | No | Selector frame; default main. | |
| selector | No | Locator query. | |
| full_page | No | ||
| tab_handle | Yes | ||
| selector_type | No | Default css. | |
| include_indicators | No | Include transient click feedback. |