Skip to main content
Glama

get_accessibility_snapshot

Get the accessibility tree of a webpage with stable identifiers to enable precise click actions. Control tree size by limiting nodes and filtering out non-interactive elements.

Instructions

Return the page's accessibility tree with stable uids.

    Each node looks like ``{"uid": "ax_1b2c", "role": "button",
    "name": "Submit", "children": [...]}``. The uid can be passed to
    ``click_by_uid`` for deterministic interaction.

    - ``max_nodes``: cap the node count to keep the response small.
    - ``interesting_only``: skip ignored/structural nodes (``none``,
      ``generic``, ``InlineTextBox``, ``StaticText``) while keeping
      their children, so the tree stays compact without losing content.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_nodesNo
interesting_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses node structure, stable uids, parameter effects (capping nodes, filtering ignored nodes), and the compact tree goal. Lacks mention of performance impact or side effects, but overall informative.

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 in first sentence, followed by a code example and bullet-pointed parameters. No redundant sentences, though the code example could be slightly more concise.

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?

Covers purpose, parameters, and return format via example. References sibling tool click_by_uid. Does not mention prerequisites like page load state, but given the tool's simplicity and presence of output schema, it is reasonably complete.

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

Parameters5/5

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

Schema has 0% description coverage, but the tool description thoroughly explains both parameters: max_nodes caps the count to keep response small, interesting_only skips structural nodes without losing content. Adds rationale and behavioral nuance beyond default values.

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?

Clearly states the verb 'Return' and resource 'accessibility tree' with the distinguishing feature 'stable uids'. The example format adds clarity and distinguishes it from siblings like get_interaction_tree.

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

Usage Guidelines3/5

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

Mentions that uids can be passed to click_by_uid for deterministic interaction, providing a usage hint. However, it does not explicitly contrast with alternative tools (e.g., get_interaction_tree, describe_uid) or state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bituq/zendriver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server