Skip to main content
Glama
kanishka-namdeo

electron-mcp-server

get_accessibility_snapshot

Retrieve the current page's Playwright accessibility snapshot to inspect roles, names, and states for automated testing.

Instructions

Get Playwright accessibility snapshot for the current page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYes
includeHiddenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not state whether the operation is read-only by nature, what permissions or active session state are required, how large the snapshot may be, or what the returned data looks like.

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?

The description is a single, front-loaded sentence with no wasted words. It is appropriately short for a simple read operation, though the extreme brevity contributes to the missing parameter and usage detail elsewhere.

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

Completeness2/5

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

With no annotations, no output schema, and 0% schema description coverage, the description is too sparse. It does not explain the required sessionId, the includeHidden option, or how the accessibility snapshot relates to sibling tools like get_accessibility_tree.

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

Parameters1/5

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

Schema description coverage is 0%, with two parameters and only a type and default for includeHidden. The description does not mention sessionId or includeHidden at all, so it adds no meaning beyond the raw schema and fails to compensate for the complete lack of parameter documentation.

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?

The description gives a specific verb (Get) and resource (Playwright accessibility snapshot for the current page), which is clear on its own. However, it does not distinguish this tool from the sibling get_accessibility_tree or explain what a snapshot contains versus a tree, leaving sibling differentiation to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives such as get_accessibility_tree, find_accessible_node, or interact_accessible_node. The phrase 'for the current page' implies context but does not explain when this tool should be selected over its siblings.

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