Full page snapshot (accessibility tree)
qa_snapshotCaptures a stable, ref-tagged map of every interactive control, landmark and heading on the live page so clicks and typing can target exact elements without fragile selectors.
Instructions
A compact accessibility / interaction snapshot of the WHOLE page: every interactive control, landmark and heading with a role, an accessible name, its state, and a STABLE ref like [ref=e12]. Unlike qa_export — which lists only the FORM fields Qiksy detects and can miss inputs, file uploads, date pickers, selects and buttons — this "sees everything". Pass a ref straight back to qa_click / qa_type / qa_spotlight: a ref is unique and unambiguous, so it works where a CSS selector is duplicated across fields. Built in the live, already-authenticated page in ~milliseconds — no browser launch, no CDP. Re-run it after the page changes to refresh the refs. ONE SNAPSHOT OWNS ITS REFS: taking a new one RENUMBERS them, so every ref from an earlier snapshot is void even when its element is still on the page — e12 may now be a different control, and nothing will refuse the click. Keep only the refs of your latest snapshot; where you cannot, target by name (qa_click, qa_fill_json), which survives both a re-render and a renumbering. On a big app, NARROW IT: fields_only for the form controls, roles for exactly the kinds you want, match for a name, within for one dialog or step panel. Filtering happens on the way out and does NOT invalidate anything — the refs you get back work like any other. One step of a wizard usually needs fields_only:true, roles:["button"], not the whole page.
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": "qa_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| omit | No | Drop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want. | |
| limit | No | Cap the number of nodes returned | |
| match | No | Keep only nodes whose accessible name contains this text (case-insensitive) | |
| roles | No | Keep only these roles, e.g. ["button","link"] or ["combobox"]. Unioned with fields_only when both are given. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| format | No | Default 'both'. 'tree' is the indented text only — about half the bytes, and enough when you just need refs and names; 'nodes' is the structured list only (each with its cssPath). | |
| select | No | Keep only these field paths, e.g. ["ok","fields[].name"]. Dots walk into objects, and a path through a list applies to every entry, keeping it a list. A path that matches nothing is reported back with the field names that ARE there. | |
| within | No | Keep only the subtree under this selector — pass the `selector` of a container node from an earlier snapshot (a dialog, a step panel, a fieldset) to see just that step's controls | |
| frameId | No | Which frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it. | |
| geometry | No | Add each node's box as "x,y,w,h" in CSS pixels — for overlap, clipping, off-screen and tap-target-size checks. Off by default: it is bulk on every node. | |
| fields_only | No | Keep only form controls (inputs, textareas, selects, checkboxes, radios, comboboxes, sliders, file fields). The cheap view when you are filling a form; combine with roles:["button"] to keep Next/Submit too. |