find_element
Locate the first UI element matching given attributes such as text, class, or resource ID on an Android device. Returns null if not found.
Instructions
Find the first UI element matching the given (non-None) attributes. Returns None if not found.
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": {
"device_id": "<device_id>"
},
"name": "find_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| exact | No | ||
| device_id | Yes | ||
| class_name | No | ||
| resource_id | No | ||
| content_desc | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |