tap_element
Locate a UI element on an Android device by text, class, resource ID, or content description and tap its center. Returns an error if no match is found.
Instructions
Find a UI element by attribute(s) and tap its center. Raises if no match is found.
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": {
"device_id": "<device_id>"
},
"name": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| exact | No | ||
| device_id | Yes | ||
| class_name | No | ||
| resource_id | No | ||
| content_desc | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||