Skip to main content
Glama

Scan a multi-page user flow

flow_scan
Read-onlyIdempotent

Scans a multi-page user journey sequentially, returning one consolidated accessibility report with deduplicated issues and fix payloads.

Instructions

Scan a multi-page user journey. Walks startUrl plus the autoNavigate URLs sequentially (deterministic — one page fully rendered and scanned before the next), then returns ONE consolidated report with issues deduplicated across pages, each carrying the same fix payload as scan_page. Every requested URL gets an explicit outcome in pages[] (scanned / nav_failed / scan_failed / redirected_duplicate / duplicate_request / skipped_cap / blocked — bot-challenge, not a clean page / auth_redirect — a session was given but the page is a sign-in page, session likely expired) — a page is never silently dropped. It visits URLs; it does not click links. To get past a login or a consent wall, pass cookies (both transports) or storageState (local MCP only), and interactions to click/fill once on startUrl before the journey is measured — those steps run on the first page only, and the session they create carries through the rest. Without autoNavigate it scans only startUrl, exactly like scan_page.

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": {
      "startUrl": "<startUrl>"
    },
    "name": "flow_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
wcagNoOnly these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2").
levelNoHighest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it).
rulesNoOnly these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules.
formatNo"compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count. On the hosted server the default is compact.
offsetNoStart the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a live page the list can shift between calls; treat the offset as a position, not a snapshot.
cookiesNoSession cookies to load before the page opens, for pages behind a login or a consent gate (at most 20). Each entry is {name, value} and optionally {url} or {domain} (default: the scanned site) plus {path}. The server sets them on the browser context for this call only and never echoes a value: results name cookies by count, never by content. Nothing is stored after the scan.
maxPagesNoMax pages to scan (default 10; at most 10 on the hosted server)
startUrlYesStarting URL of the journey
minImpactNoOnly findings at this severity or above (critical > serious > moderate > minor)
sourceRootNoLocal project root (local installs only) for `sourceCandidates[]` on issues without a framework `source` pointer.
autoNavigateNoThe URLs to walk after startUrl, in order (the MCP server is headless and cannot discover a journey interactively). Omit or pass [] to scan only startUrl as a single page.
interactionsNoSteps to run on the page after it loads and before the scan, in order (at most 10, 20s total). Use this to get past a cookie banner, submit a sign-in, or open the panel you want measured. Each step is exactly one of {click: "css selector"}, {fill: {selector, value}}, {waitFor: "css selector"} or {wait: milliseconds}. The scan then measures the page those steps left behind and reports every step in "setup" (a failed step stops the list; the scan still runs and says so). Unlike dismissModals this is deterministic and yours, not a guess.
storageStateNoLocal MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state auth.json`. The hosted server refuses this argument.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.12.0
    • addedInput schema / properties / cookies
      Added value: +{
      +  "description": "Session cookies to load before the page opens, for pages behind a login or a consent gate (at most 20). Each entry is {name, value} and optionally {url} or {domain} (default: the scanned site) plus {path}. The server sets them on the browser context for this call only and never echoes a value: results name cookies by count, never by content. Nothing is stored after the scan.",
      +  "items": {
      +    "properties": {
      +      "domain": {
      +        "description": "Scope this cookie to a domain (e.g. .example.com). Do not combine with url.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Cookie name, e.g. session_id",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Cookie path (default /)",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Scope this cookie to a URL (e.g. https://app.example.com). Default: the scanned site. Do not combine with domain.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Cookie value. Never echoed in the result.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / interactions
      Added value: +{
      +  "description": "Steps to run on the page after it loads and before the scan, in order (at most 10, 20s total). Use this to get past a cookie banner, submit a sign-in, or open the panel you want measured. Each step is exactly one of {click: \"css selector\"}, {fill: {selector, value}}, {waitFor: \"css selector\"} or {wait: milliseconds}. The scan then measures the page those steps left behind and reports every step in \"setup\" (a failed step stops the list; the scan still runs and says so). Unlike dismissModals this is deterministic and yours, not a guess.",
      +  "items": {
      +    "properties": {
      +      "click": {
      +        "description": "CSS selector to click, e.g. #onetrust-accept-btn-handler",
      +        "type": "string"
      +      },
      +      "fill": {
      +        "description": "Type into a field, e.g. {selector: \"#email\", value: \"qa@example.com\"}",
      +        "properties": {
      +          "selector": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "selector",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "wait": {
      +        "description": "Milliseconds to wait (0-5000)",
      +        "type": "number"
      +      },
      +      "waitFor": {
      +        "description": "CSS selector to wait for, visible, before the next step",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
  2. Changed1 schema field changedv1.11.1
    • addedInput schema / properties / storageState
      Added value: +{
      +  "description": "Local MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state auth.json`. The hosted server refuses this argument.",
      +  "type": "string"
      +}
  3. Changed3 schema fields changedv1.10.2
    • changedInput schema / properties / format / description
      Previous value: -"\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count."New value: +"\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count. On the hosted server the default is compact."
    • changedInput schema / properties / maxPages / description
      Previous value: -"Max pages to scan (default 10)"New value: +"Max pages to scan (default 10; at most 10 on the hosted server)"
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Start the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a live page the list can shift between calls; treat the offset as a position, not a snapshot.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. Changed2 schema fields changedv1.9.0
    • changedInput schema / properties / autoNavigate / description
      Previous value: -"REQUIRED — the URLs to walk after startUrl (the MCP server is headless and cannot discover a journey interactively). For a single page, use scan_page instead."New value: +"The URLs to walk after startUrl, in order (the MCP server is headless and cannot discover a journey interactively). Omit or pass [] to scan only startUrl as a single page."
    • changedInput schema / required
      Previous value: -[
      -  "startUrl",
      -  "autoNavigate"
      -]New value: +[
      +  "startUrl"
      +]
  5. Changed1 schema field changedv1.8.0
    • addedInput schema / properties / level
      Added value: +{
      +  "description": "Highest WCAG conformance level to report. Default \"AA\" — Level AAA criteria are not reported. Pass \"AAA\" to include them (naming one AAA criterion in `wcag`, e.g. \"3.2.5\", also includes it).",
      +  "enum": [
      +    "A",
      +    "AA",
      +    "AAA"
      +  ],
      +  "type": "string"
      +}
  6. Changed5 schema fields changedv1.7.0
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count.",
      +  "enum": [
      +    "json",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / minImpact
      Added value: +{
      +  "description": "Only findings at this severity or above (critical > serious > moderate > minor)",
      +  "enum": [
      +    "critical",
      +    "serious",
      +    "moderate",
      +    "minor"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "description": "Only these rule ids (WebAbility type such as \"missing_alt\" or axe rule id such as \"image-alt\"). See get_rules.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / sourceRoot
      Added value: +{
      +  "description": "Local project root (local installs only) for `sourceCandidates[]` on issues without a framework `source` pointer.",
      +  "type": "string"
      +}
    • addedInput schema / properties / wcag
      Added value: +{
      +  "description": "Only these WCAG criteria. A prefix selects the whole guideline (\"1.4\") or principle (\"2\").",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  7. First observedv1.3.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description adds substantial context beyond that: deterministic one-page-at-a-time scanning, cross-page issue deduplication, the full per-page outcome vocabulary (nav_failed, blocked, auth_redirect, skipped_cap, etc.) with a guarantee that pages are never silently dropped, that interactions run only on startUrl and the session carries forward, and that cookies are never echoed and nothing is stored after the scan.

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 purpose and mechanism before edge cases, and most sentences carry unique information. The long inline list of page outcomes is dense but genuinely load-bearing; a bulleted structure for the outcome codes would read slightly better than the parenthetical run-on.

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?

For a 13-parameter, high-complexity, side-effect-free scanning tool with no output schema, the description covers the report shape (consolidated, deduplicated, pages[] outcomes), traversal semantics, and authentication paths. An agent has everything needed to choose it and call it correctly without inferring behavior.

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; the description still adds cross-parameter meaning the schema does not — that omitting `autoNavigate` collapses to single-page mode, that `interactions` applies only to the first page, that `storageState` is refused on the hosted server, and that cookies work across both transports. It does not re-explain the filters (wcag, level, rules, minImpact), which the schema already covers well.

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?

Opens with a specific verb+resource ("Scan a multi-page user journey") and immediately states the mechanism: walks startUrl plus autoNavigate URLs sequentially and returns ONE consolidated deduplicated report. It explicitly contrasts itself with the sibling scan_page ("Without autoNavigate it scans only startUrl, exactly like scan_page"), so an agent can distinguish the two without opening schemas.

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 when-to-use branches: pass `autoNavigate` for multi-page, omit it to behave like scan_page; pass `cookies`/`storageState` for login or consent walls; pass `interactions` only when the entry page needs a click/fill. It also names the alternative (scan_page) and contrasts interactions with dismissModals, and states hosted-vs-local constraints.

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