appium.tap_by_text
Tap a visible UI element by its text label, using exact-first matching with contains fallback. This enables reliable element interaction in mobile app tests.
Instructions
[approval required][device mutation][risk:dangerous] Tap a visible element by text with exact-first matching before contains fallback.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"text": "<text>"
},
"name": "appium.tap_by_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| matchMode | No | ||
| serverUrl | No | ||
| sessionId | Yes | ||
| timeoutMs | No |