adb_tap_element
Finds a UI element by text, resource-id, or content-description and taps its center, providing a reliable alternative to coordinate-based taps in dynamic Android layouts.
Instructions
Find a UI element by text, resource-id, or content-description, then tap its center. Combines UI hierarchy search with input tap in one atomic operation. More reliable than coordinate-based taps for dynamic layouts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| index | No | Which match to tap if multiple found (0 = first match, default) | |
| device | No | Device serial | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) |