Accessibility snapshot
page_snapshotCaptures the current page as a compact accessibility tree with stable element refs, so agents can inspect structure and target interactive elements for clicks, typing, forms, and screenshots.
Instructions
Returns the page as a compact accessibility tree (roles, names, states, values) built by Chrome itself, including cross-origin iframes and shadow DOM. Every interactive element gets a stable ref like [ref=e12] to use with click, type, fill_form, screenshot, dom_inspect and other tools. Prefer this over screenshots for understanding structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Element ref from page_snapshot or find, e.g. "e12". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| maxChars | No | Truncate the output after this many characters (default 30000). | |
| viewportOnly | No | Only include elements currently inside the viewport. | |
| interactiveOnly | No | Only list interactive elements (buttons, links, inputs…), flattened. |