snapshot
Returns a compact text outline of a page's headings, landmarks and interactive elements with stable refs for clicking, typing and form filling. Use it first to understand page structure before acting.
Instructions
Read-only: return a compact text outline of the page: headings, landmarks and every visible interactive element (links, buttons, inputs, selects) with its role, accessible name, state and a ref such as [ref=e12]. It sees through shadow DOM and same-origin iframes. Use the refs with click, hover, type, fill_form and scroll. Call it first on any page, and again after navigation or large page changes, because refs go stale. Far cheaper than screenshot for understanding structure. mode=all also includes text blocks; use get_text to just read content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id from tabs_list. Defaults to the current tab. | |
| mode | No | interactive (default): headings and interactive elements only; all: also include text blocks. | |
| selector | No | CSS selector of a subtree to outline instead of the whole page, e.g. "form" or "#checkout". | |
| max_chars | No | Maximum characters of output (default 20000); narrow with selector for big pages. |