browser_snapshot
Capture a compact, token-efficient page snapshot with numbered interactive elements, labels, headings, and iframe details. Scope by CSS selector or viewport to reduce tokens.
Instructions
Capture a compact, token-efficient snapshot of the active page showing interactive elements with numbered references (@1, @2, ...), smart labels (icons/images/CSS backgrounds), headings, and accessible iframes. Supports scoping to a CSS selector and viewport-only filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | Optional CSS selector to scope snapshot to a specific DOM container | |
| in_viewport | No | If true, only include elements currently visible in viewport | |
| max_elements | No | Maximum interactive elements to include (truncates remainder to save tokens) |