Skip to main content
Glama

Full page snapshot (accessibility tree)

qa_snapshot

Captures 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

NameRequiredDescriptionDefault
omitNoDrop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want.
limitNoCap the number of nodes returned
matchNoKeep only nodes whose accessible name contains this text (case-insensitive)
rolesNoKeep only these roles, e.g. ["button","link"] or ["combobox"]. Unioned with fields_only when both are given.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
formatNoDefault '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).
selectNoKeep 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.
withinNoKeep 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
frameIdNoWhich 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.
geometryNoAdd 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_onlyNoKeep 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses execution context (live authenticated page, milliseconds, no browser launch/CDP), the critical ref-renumbering hazard where stale refs silently misfire ("nothing will refuse the click"), and the fallback of targeting by name. It also clarifies that filtering does not invalidate refs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, contents, and differentiation before the caveats, and nearly every sentence adds actionable information. It is long and leans on capitalized emphasis ("WHOLE", "ONE SNAPSHOT OWNS ITS REFS", "NARROW IT"), which is slightly heavy but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with no output schema and no annotations, it covers the return shape, ref lifecycle, and narrowing strategy well enough to call correctly. Error behavior and tab/frame targeting are left to the schema rather than the description, a small residual gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes beyond by explaining how to combine fields_only with roles and which parameters matter in practice (within, match, roles). It does not add format or selector syntax detail beyond the schema, so it sits just above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — "compact accessibility / interaction snapshot of the WHOLE page" — and enumerates the payload (role, accessible name, state, stable ref). It explicitly distinguishes itself from the sibling qa_export and its narrower scope, so an agent can choose between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (need refs for clicking/typing, need controls qa_export misses), when-not/alternative (qa_export for detected form fields), and follow-on routing to qa_click / qa_type / qa_spotlight. It also prescribes concrete narrowing recipes, including "one step of a wizard usually needs fields_only:true, roles:[\"button\"]".

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.