get_view_hierarchy
Retrieves the current UI accessibility hierarchy with labels, types, frames, and testIDs, enabling you to inspect and filter React Native app elements.
Instructions
Dump the current UI accessibility tree with labels, types, frames, and testIDs. Requires Facebook IDB on iOS.
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": "get_view_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter elements by label, testID, value, or type | |
| format | No | Output format: raw (JSON on iOS, XML on Android) or formatted tree (default: tree) |