ui-query
Query an Android app's UI using accessibility trees. Dump, find, or check accessibility of elements with selector filters.
Instructions
Query app UI. Accessibility-first.
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": {
"operation": "<operation>"
},
"name": "ui-query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| selector | No | ||
| debug | No | ||
| maxTier | No | Max fallback tier (1-5). Use 3 to stop before visual/grid payloads. | |
| gridCell | No | ||
| gridPosition | No | ||
| compact | No | Paginated flat list (default: true). false for full tree. | |
| limit | No | Default: 20 | |
| offset | No |