Visible page snapshot
visible_snapshotGet a viewport-aware snapshot of visible page elements, including refs, labels, roles, bounds, and scroll metadata, to interact with the current browser view.
Instructions
Return a viewport-aware snapshot with visible/intersecting elements, refs, labels, roles, bounds, and scroll metadata. Iframe bounds use frameViewport coordinates.
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": "visible_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |