safari_snapshot
Get the page's accessibility tree with ref IDs for every interactive element, so you can click, fill, and type using refs instead of CSS selectors.
Instructions
PREFERRED way to see page state. Returns accessibility tree with ref IDs for every interactive element. Use refs with click/fill/type instead of CSS selectors. Workflow: snapshot → see refs → click({ref:'0_5'}). PREFER THIS over safari_screenshot (cheaper, structured text vs heavy image) and over safari_read_page (includes interactive refs). Use safari_screenshot only when you need to see visual layout/styling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | No | Tab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents) | |
| selector | No | CSS selector for subtree (default: full page) |