Skip to main content
Glama

browser_accessibility_snapshot

Capture Playwright's accessibility snapshot of the current page to inspect its accessibility tree and understand page structure for navigation or form actions.

Instructions

Return Playwright's accessibility snapshot for the current 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": "browser_accessibility_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 disclosure burden. It implies a read-only operation on the current page but says nothing about output size, truncation behavior, cost, or what happens if no page is loaded. The presence of a maxChars parameter strongly suggests truncation, which the description never mentions.

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?

A single tight sentence with no filler and the key concept front-loaded. It is efficient but borders on under-specified rather than wasteful, so it earns a solid but not top mark.

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?

For a tool with no annotations and no output schema, the description should explain the return format (an accessibility tree rendered as text/YAML) and truncation semantics. Neither is covered, leaving the agent unable to predict the response shape or the effect of maxChars.

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

Parameters2/5

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

Schema description coverage is 0% for the single optional maxChars parameter (integer, 500-30000). The description does not mention maxChars at all, so the agent gets no explanation of what happens at the cap: whether the tree is truncated, errors out, or returns a marker. Only the parameter name and numeric bounds provide meaning.

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 names a specific verb and resource: 'Return Playwright's accessibility snapshot for the current page.' An agent can tell this produces an accessibility tree rather than a pixel screenshot. However, it never differentiates itself from the sibling browser_snapshot, so the agent must guess which snapshot tool to pick.

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 when-to-use guidance, no precondition stated (e.g. that a page must already be open via browser_open/browser_navigate), and no mention of when to prefer browser_snapshot, browser_links, or browser_screenshot instead. Usage has to be inferred entirely from the name.

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