safari_snapshot
Returns a page's accessibility tree with ref IDs for every interactive element, letting you click, fill, or type by ref 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.
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": "safari_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Return only the lines that changed since this tab's previous snapshot (+ added, with fresh refs; - removed). Much smaller after a click or a fill | |
| receipt | No | Omit it: Daylight has no tab receipts and refuses a call that passes one | |
| selector | No | CSS selector for subtree (default: full page) |