adb_find_element
Find UI elements on Android by their attributes (resource ID, text, content description, class, state) using uiautomator.
Instructions
Find UI elements by their attributes using uiautomator.
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": {
"serial": "<serial>"
},
"name": "adb_find_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| serial | Yes | ||
| enabled | No | ||
| clickable | No | ||
| focusable | No | ||
| class_name | No | ||
| resource_id | No | ||
| content_desc | No |