tap_element
Finds and taps UI elements on Android emulators by text or resource ID, offering exact matching and index selection for multiple matches.
Instructions
Find and tap an element by text or resource-id (more reliable than tap_text)
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 | Text to search for | |
| exact | No | Exact text match (default: false) | |
| index | No | Index if multiple matches (0-based, default: 0) | |
| resourceId | No | Resource ID to search for |