accessibility_snapshot
Capture page accessibility trees as JSON to test screen-reader behavior, find elements by role, and audit for missing ARIA labels in Electron apps.
Instructions
Capture the accessibility tree of the current page as JSON. Useful for testing screen-reader behaviour, finding elements by role, or auditing for missing ARIA labels. Optionally pass interestingOnly: false to include every node, not just interesting ones.
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": "accessibility_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interestingOnly | No | Filter to interactive/labelled nodes only. Default true (matches Playwright default). | |
| root | No | Optional selector. If given, snapshot is rooted at that element instead of the full page. |