describe_element
Inspect every attribute and state flag of elements a selector matches, including exact bounds and candidate indexes for writing reliable UI test assertions.
Instructions
Read-only: dump EVERY attribute of the element(s) a selector matches — the state flags observe_ui hides (checkable, checked, selected, focused, enabled, password, scrollable), the full resource-id and class, and exact bounds. Returns one block per match with the index: a flow selector would use, so an ambiguous selector shows all its candidates instead of silently picking the first. Accepts the same enabled/checked/focused/selected qualifiers a flow selector does, so the index it reports is the index that selector will get. Use it while authoring to answer 'does this control expose its state at all?' before writing an assertion around it. For a single match with fewer attributes, find_element is the smaller answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Bare resource-id (Compose testTag), regex full-match | |
| text | No | Visible text or content-desc, regex full-match | |
| checked | No | Only match nodes with this checked state | |
| enabled | No | Only match nodes with this enabled state | |
| focused | No | Only match nodes with this focused state | |
| selected | No | Only match nodes with this selected state | |
| device_id | No |