tap_element
Locate an Android UI element by text, content description, or resource ID and tap its center. Enables automated taps without needing screen coordinates.
Instructions
Find an element by text/content-desc (substring, case-insensitive) or resource-id and tap its center
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": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| index | No | Which match to tap if several | |
| serial | No | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) | |
| resource_id | No |