Skip to main content
Glama

edge_get_accessibility_snapshot

Capture a token-efficient semantic accessibility snapshot of the active page to inspect interactive elements without loading bulky HTML, optionally scoped by CSS selector.

Instructions

Get the semantic accessibility tree of the active page. This is the most token-efficient way for an AI agent to inspect interactive elements (buttons, inputs, links, headings) without loading bulky HTML.

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": "edge_get_accessibility_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootSelectorNoOptional CSS selector to scope the snapshot to a specific subtree/component
interestingOnlyNoFilter out non-semantic structural containers to minimize tokens (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add useful behavior context — scope is the active page, output is a semantic tree rather than raw markup, and token cost is minimized — but it omits whether the snapshot is read-only (only implied by "Get"), how iframes/shadow DOM or non-interactive text are handled, and any size or staleness limits.

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

Conciseness5/5

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

Two sentences, front-loaded with the resource and scope, then a single justification for why an agent should pick it. No redundant restatement of the name and no filler.

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?

With only two optional parameters, no annotations, and no output schema, the description covers what an agent needs to decide to call it and roughly what comes back. The gap is return-shape detail: with no output schema, a brief note on the tree's node structure would close the loop.

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

Parameters3/5

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

Schema description coverage is 100%, so both rootSelector and interestingOnly are already documented in the schema. The description adds no further meaning about scoping or filtering behavior, which is acceptable given the schema does the work, but leaves the baseline unimproved.

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

Purpose4/5

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

States a specific verb and resource ("Get the semantic accessibility tree of the active page") and enumerates what the tree contains (buttons, inputs, links, headings). It implicitly routes away from edge_get_html by contrasting with "bulky HTML," but never names a sibling explicitly, so differentiation is inferential rather than stated.

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

Usage Guidelines4/5

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

Clear positive guidance: use this to inspect interactive elements when you want to avoid loading full HTML, and it frames itself as the token-efficient option for an AI agent. It stops short of explicit exclusions — nothing says when a screenshot or raw HTML would still be preferable, or when the snapshot would be insufficient.

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