Snapshot page
browser_snapshotInspect a page's accessibility tree as compact YAML with element refs for interaction. Filter by ref, CSS, or role, limit depth, or page with offset.
Instructions
Returns the accessibility tree of the page as compact YAML, with a [ref=eN] handle on every element. This is the primary way to see the page — use these refs to click and type. Far cheaper than HTML or screenshots. Scope it with ref/css/role, cap it with depth, or page through it with offset when a page is large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector, as an alternative to ref. | |
| ref | No | Element ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". Combine with name for an accessible-name match. | |
| boxes | No | Include [box=x,y,w,h] viewport coordinates. | |
| depth | No | Limit tree depth. Useful for a quick overview of a large page. | |
| index | No | Which match to use when the selector is ambiguous (0-based, default 0). | |
| offset | No | Start offset, for paging. | |
| maxChars | No | Character budget for this call. | |
| sessionId | Yes | Session id returned by browser_start. | |
| interactiveOnly | No | Return only actionable elements (buttons, links, inputs, ...). |