Skip to main content
Glama

a11y-toolkit: Screen reader transcript

a11y_sr_transcript
Read-onlyIdempotent

Generate a screen reader transcript of a page to see what a blind user hears in reading order, returning linearized announcements as strings for accessibility review.

Instructions

Screen reader TRANSCRIPT: what a blind user HEARS on this page. Walks the accessibility tree linearly and returns announcements as a LIST OF STRINGS (the linearized reading order — roles and names embedded in the text, e.g. "button "Search"") plus arbol_raw, the raw accessibility-tree snapshot it was read from (external review round 6: the contract published objects with time/politeneness/role/text — the real shape was strings; the contract now matches reality and existing clients keep working). Prose an agent can READ to understand the page from a blind user's perspective. — Read-only: for structure use a11y_snapshot, for keyboard traps use a11y_keyboard. Requires Playwright. Returns JSON: {url, total, announcements [{time, politeness, role, text}] — the linearized reading order}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "a11y_sr_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL to transcribe
langNoOutput language (en default)
browserNoBrowser engine (auto = detect the first available)
timeoutNoPage load timeout (45 default)
auth_stateNoPath to a Playwright storage_state JSON (exported session) to audit behind login — stays local

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.5.0
    • addedInput schema / properties / auth_state
      Added value: +{
      +  "description": "Path to a Playwright storage_state JSON (exported session) to audit behind login — stays local",
      +  "type": "string"
      +}
    • addedInput schema / properties / browser
      Added value: +{
      +  "description": "Browser engine (auto = detect the first available)",
      +  "enum": [
      +    "auto",
      +    "chromium",
      +    "firefox",
      +    "webkit",
      +    "chrome",
      +    "msedge"
      +  ],
      +  "type": "string"
      +}
  2. Addedv4.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered; the description usefully adds the Playwright requirement and the linear traversal behavior. However it undermines itself by first promising a LIST OF STRINGS and then documenting the return as announcements objects with time/politeness/role/text, leaving the caller unsure what shape arrives. That self-contradiction on the core contract is a real transparency gap.

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

Conciseness2/5

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

The opening sentence is crisp and front-loaded, but a long internal changelog parenthetical ("external review round 6: the contract published objects with time/politeness/role/text — the real shape was strings...") is process noise that does not help an agent call the tool and actively conflicts with the later return-shape sentence.

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?

There is no output schema, so the description carries the burden of explaining returns, and it does attempt that with a JSON sketch. But because the two return-shape statements disagree, an agent cannot rely on it, and nothing is said about volume, pagination, or what arbol_raw is for.

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 url, lang, browser, timeout and auth_state are already documented in the schema; baseline 3 applies. The description adds nothing parameter-specific beyond a passing mention that Playwright is required, which loosely maps to the browser parameter.

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?

States a specific verb and resource: it walks the accessibility tree linearly and returns the announcements a blind user hears, as opposed to the raw structure. It explicitly distinguishes itself from a11y_snapshot (structure) and a11y_keyboard (keyboard traps), so an agent can pick it without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit routing: use a11y_snapshot for structure, a11y_keyboard for keyboard traps, and this tool for the lived reading experience. It also states the hard prerequisite (Requires Playwright), which is a condition an agent must satisfy before calling.

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