Skip to main content
Glama

accessibility_snapshot

Capture page accessibility trees as JSON to test screen-reader behavior, find elements by role, and audit for missing ARIA labels in Electron apps.

Instructions

Capture the accessibility tree of the current page as JSON. Useful for testing screen-reader behaviour, finding elements by role, or auditing for missing ARIA labels. Optionally pass interestingOnly: false to include every node, not just interesting ones.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interestingOnlyNoFilter to interactive/labelled nodes only. Default true (matches Playwright default).
rootNoOptional selector. If given, snapshot is rooted at that element instead of the full page.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the tool captures data (non-destructive read operation) and mentions the default behavior for 'interestingOnly' (matches Playwright default), but does not cover other aspects like performance implications, error handling, or output structure details.

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?

The description is efficiently structured in two sentences: the first states the core purpose and use cases, and the second provides a key parameter tip. Every sentence adds value without redundancy, making it easy to parse and front-loaded with essential information.

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

Completeness3/5

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

Given the tool's moderate complexity (accessibility data capture), no annotations, and no output schema, the description is adequate but incomplete. It covers the purpose and basic usage but lacks details on output format, error conditions, or integration with other tools, leaving gaps for an AI agent to infer behavior.

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 the schema already fully documents both parameters. The description adds minimal value by mentioning 'interestingOnly: false' as an option to include every node, but does not provide additional semantic context beyond what the schema descriptions state.

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?

The description clearly states the specific action ('capture the accessibility tree') and resource ('current page'), with a precise output format ('as JSON'). It distinguishes this tool from siblings like 'screenshot' or 'snapshot' by focusing on accessibility data rather than visual or DOM snapshots.

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?

The description provides clear context for when to use this tool ('useful for testing screen-reader behaviour, finding elements by role, or auditing for missing ARIA labels'), which helps differentiate it from other tools. However, it does not explicitly state when not to use it or name specific alternatives among siblings.

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/mesomya/electron-driver'

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