browser_snapshot
Capture the page's ARIA accessibility tree and visible interactive elements with ref handles, enabling direct action without CSS clutter.
Instructions
Capture the page's ARIA accessibility tree with [ref=...] handles.
This is the primary way to 'see' a page: it lists actionable elements (roles +
names + refs) without CSS/markup noise. Pass a ref from here to click/type/hover.
Frame-hosted elements get prefixed refs like 'f1e36' (iframe 1, element 36).
Shadow DOM elements appear with plain eN refs — the locator engine pierces them.
enrich=True ALSO appends a DOM map of visible interactive elements, each with a css
selector usable in the ref slot (browser_click(ref="css=...")). Use it when the ARIA
tree collapses to bare 'generic' nodes with no usable names/refs (JS-heavy sites).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| depth | No | ||
| enrich | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |