android_tap_element
Tap Android UI elements by text, content description, or resource ID to automate app interactions. Use with Metro Logs MCP for testing and debugging React Native applications.
Instructions
Tap an element by its text, content-description, or resource-id using uiautomator. TIP: Consider using ocr_screenshot first - it returns ready-to-use tap coordinates for all visible text and works more reliably across different apps.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Exact text match for the element | |
| textContains | No | Partial text match (case-insensitive) | |
| contentDesc | No | Exact content-description match | |
| contentDescContains | No | Partial content-description match (case-insensitive) | |
| resourceId | No | Resource ID match (e.g., 'com.app:id/button' or just 'button') | |
| index | No | If multiple elements match, tap the nth one (0-indexed, default: 0) | |
| deviceId | No | Optional device ID. Uses first available device if not specified. |