browser_snapshot
Captures an accessibility snapshot of the current page to reveal structure and element references for inspection, targeting, and debugging instead of relying on screenshots.
Instructions
Capture accessibility snapshot of the current page, this is better than screenshot
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | Include each element's bounding box as [box=x,y,width,height] in the snapshot. Coordinates are viewport-relative, in CSS pixels (Element.getBoundingClientRect) | |
| depth | No | Max depth of the returned subtree. Use with section/around to get a high-level overview first. | |
| around | No | Return only the landmark subtree containing this ref number. Use when you know a specific element's ref. | |
| target | No | Exact target element reference from the page snapshot, or a unique element selector | |
| section | No | Return only the subtree under this landmark (e.g. 'form', 'main', 'navigation "Footer"'). Reduces output by 90%+. | |
| filename | No | Save snapshot to markdown file instead of returning it in the response. |