Skip to main content
Glama

a11y-toolkit: Infinite-scroll audit (passive by default; interactive=true clicks the exact control you name)

a11y_scroll
Idempotent

Audit infinite-scroll and paginated feeds for accessibility failures. It checks focus persistence, new-content announcements, and footer or load-more reachability.

Instructions

Infinite-scroll accessibility audit — the documented disaster nobody automates (Deque guidance + ARIA APG Feed pattern; criteria 2.4.3, 4.1.3, 2.2.2). PASSIVE BY DEFAULT (external review round 5: the load-more fallback clicked by substring match hit unrelated buttons — the walk now scrolls only and never clicks). To ALSO test the load-more alternative pass interactive=true together with load_more="the exact visible text of the control" — that performs a REAL click on that one control and nothing else. Real scrolling batches in Chromium with a live-region observer: does the focused element SURVIVE each batch (re-render destroys it — the documented failure)? Is new content ANNOUNCED (aria-live/status receives text, role=feed)? Does the feed END or offer a load-more alternative (footer reachability)? APG feed pattern as positive signal. Honest guard: if no standard items are detected (login walls, non-standard markup) the unfounded signals are skipped with a note. Requires local Playwright. — For paginated feeds only; general page audit is a11y_audit_url/dom. Returns JSON: {mode, url, score, findings [{criterion, severity, signal, issue, remediation}], summary} — same shape as the audits.

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_scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFeed URL to audit (best on feeds you own or can authenticate into)
langNoOutput language (default en)
browserNoBrowser engine (auto = detect the first available)
load_moreNowith interactive=true: the EXACT visible text of the load-more control (full trimmed-text match, never substring)
auth_stateNoPath to a Playwright storage_state JSON (exported session) to audit an authenticated feed
interactiveNopassive walk by default (scroll only, NEVER clicks); true enables the load-more click test (a real action on the page)
max_batchesNoscroll batches (5 default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.32.0
    • addedInput schema / properties / interactive
      Added value: +{
      +  "description": "passive walk by default (scroll only, NEVER clicks); true enables the load-more click test (a real action on the page)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / load_more
      Added value: +{
      +  "description": "with interactive=true: the EXACT visible text of the load-more control (full trimmed-text match, never substring)",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv5.27.0
    • addedInput schema / properties / browser
      Added value: +{
      +  "description": "Browser engine (auto = detect the first available)",
      +  "enum": [
      +    "auto",
      +    "chromium",
      +    "firefox",
      +    "webkit",
      +    "chrome",
      +    "msedge"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv5.14.0
    • addedInput schema / properties / max_batches
      Added value: +{
      +  "description": "scroll batches (5 default)",
      +  "type": "integer"
      +}
    • removedInput schema / properties / max_tandas
      Removed value: -{
      -  "description": "scroll batches (5 default)",
      -  "type": "integer"
      -}
  4. Changed1 schema field changedv5.6.0
    • removedInput schema / browser
      Removed value: -{
      -  "description": "Browser engine (auto = detect the first available)",
      -  "enum": [
      -    "auto",
      -    "chromium",
      -    "firefox",
      -    "webkit",
      -    "chrome",
      -    "msedge"
      -  ],
      -  "type": "string"
      -}
  5. Changed4 schema fields changedv4.0.0
    • addedInput schema / browser
      Added value: +{
      +  "description": "Browser engine (auto = detect the first available)",
      +  "enum": [
      +    "auto",
      +    "chromium",
      +    "firefox",
      +    "webkit",
      +    "chrome",
      +    "msedge"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / auth_state
      Added value: +{
      +  "description": "Path to a Playwright storage_state JSON (exported session) to audit an authenticated feed",
      +  "type": "string"
      +}
    • addedInput schema / properties / lang / description
      Added value: +"Output language (default en)"
    • addedInput schema / properties / url / description
      Added value: +"Feed URL to audit (best on feeds you own or can authenticate into)"
  6. Addedv3.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Substantial context beyond the annotations: real scrolling in Chromium with a live-region observer, a statement that interactive=true performs a REAL click on exactly one control and nothing else, a Playwright dependency, and an 'honest guard' that skips unfounded signals on login walls or non-standard markup. Annotations (destructiveHint=false, readOnlyHint=false) mean the bar is lower, and the description still adds meaningful operational detail; only rate/timeout and failure behavior are absent.

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 the purpose and the passive-by-default default, with the destructive-click warning before the optional path. It loses a point for editorializing and process history ('the documented disaster nobody automates', 'external review round 5') that informs a human reviewer more than an agent deciding how to call the tool.

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

Completeness5/5

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

No output schema exists, and the description fully supplies the return shape ({mode, url, score, findings [{criterion, severity, signal, issue, remediation}], summary}) and notes it matches the other audits. With the environment requirement, the guard behavior, and the sibling routing all covered, nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real semantics the schema does not: load_more is a full trimmed-text match and 'never substring' (with the reason — substring matching hit unrelated buttons), and interactive=true is a side-effecting action rather than just a boolean flag. The interaction between the two parameters is clarified in prose.

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 ('Infinite-scroll accessibility audit') plus named criteria (2.4.3, 4.1.3, 2.2.2) and the checks performed (focus survival across batches, live-region announcements, feed end / load-more). It also draws an explicit boundary against siblings: 'For paginated feeds only; general page audit is a11y_audit_url/dom.'

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?

Explicit when-to-use (paginated feeds) and when-not (general page audit → a11y_audit_url/dom), plus the precise condition for enabling interactive mode ('pass interactive=true together with load_more=...'). It even gives the reason the interactive path is opt-in, so the agent understands the tradeoff rather than blindly following a flag.

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