get_element_tree
Extract the accessibility tree for a specific element, returning a Markdown hierarchy of interactive and text nodes. Use this to get context about a panel, modal, or component without fetching the entire page.
Instructions
Extract the semantic surface (accessibility tree) for a specific element and its descendants. Returns a Markdown-formatted hierarchical list of nodes containing interactive or text elements. Use this when you need context about a specific panel, modal, or component without fetching the entire 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": {
"backendNodeId": "<backendNodeId>"
},
"name": "get_element_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameIndex | No | Target frame index (optional, defaults to automatic detection if backendNodeId is used). | |
| semanticOnly | No | Filter out structural-only nodes (default: true) | |
| backendNodeId | Yes | The backend DOM node ID of the root element to inspect |