ui_find_element
Locate UI elements on an Android screen by searching text, resource ID, class name, or content description to retrieve matching tap coordinates for automated interaction.
Instructions
Find UI elements on screen by text, resource ID, class name, or content description. Returns matching elements with their tap coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text content to search for | |
| serial | No | Device serial number | |
| className | No | Class name to match exactly (e.g., 'android.widget.Button') | |
| exactMatch | No | If true, text and contentDesc require exact matches | |
| resourceId | No | Resource ID to match exactly (e.g., 'com.app:id/button') | |
| contentDesc | No | Content description to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of matching elements | |
| elements | Yes | Matching UI elements with tap coordinates |