Query Accessibility Tree
query_accessibility_treeSearch browser accessibility trees by ARIA role or element name to identify components for testing and auditing. Returns matching nodes with their properties to support framework-agnostic test automation.
Instructions
Search the accessibility tree by ARIA role and/or accessible name. Returns matching nodes with their properties. Example: role="button", accessibleName="Submit" finds all Submit buttons.
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": "query_accessibility_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ARIA role to filter by (e.g. "button", "textbox", "link", "heading"). Case-insensitive. | |
| accessibleName | No | Accessible name to match (partial or exact). Case-insensitive. | |
| backendNodeId | No | DOM backend node ID to start search from (narrows scope). |