browser_snapshot
Read rendered page text, including off-screen content and shadow roots, plus viewport flags and scroll regions with target refs, positions, and directions. Refs expire on navigation.
Instructions
Read rendered document text (including off-screen content), viewport flags and scroll regions with target refs, positions and available directions. Includes open shadow roots. Refs expire on navigation.
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": {
"tabId": "<tabId>"
},
"name": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab id from browser_tabs. | |
| browser | No | Browser id from browser_list, or chrome/firefox when only one instance matches. | |
| frameId | No | Frame id from browser_frames; defaults to top frame. | |
| maxChars | No | ||
| showScrollbars | No | Optional visual assistance: inject visible scrollbar styling. Ordinary snapshots do not change page styling. |