Get page snapshot
get_page_snapshotReturns the page’s accessibility tree as YAML—roles, names, states, and iframe contents—with [ref=eN] handles to use as aria-ref selectors, so you can inspect and interact without guessing selectors.
Instructions
Return the page's accessibility tree as YAML: roles, accessible names, values and states, including iframe contents. Every element has a [ref=eN] handle; pass it to other tools as selector "aria-ref=eN". Use this before interacting with a page instead of guessing selectors. Refs from older snapshots may go stale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Limit tree depth | |
| selector | No | Only snapshot this element's subtree | |
| maxLength | No | Truncate output beyond this many characters |