ui_tap
Tap Android UI elements by coordinates or by selector (text, resource ID, description, regex), with optional long-press and timeout wait for the target.
Instructions
Tap by coordinates, or tap the first element matching a selector (waits for it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate (with y). | |
| y | No | Y coordinate (with x). | |
| rid | No | Resource id (full or after '/'). | |
| desc | No | Exact content description (accessibility label). | |
| long | No | Long-press instead of tap. | |
| text | No | Exact text. | |
| timeout | No | Seconds to wait for the element. | |
| label_re | No | Regex on text or description. | |
| desc_contains | No | Substring of the content description. | |
| text_contains | No | Case-insensitive substring of the text. |