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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_page_snapshot"
}
}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 |