tap
Clicks at screen coordinates or on an element found by text, resource ID, or content description, using a fresh UI dump to resolve and target its center.
Instructions
Tap at (x, y), or on the element found by ONE selector (text, resource_id or content_desc), resolved through a fresh UI dump and tapped at its center.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | No | Selector: visible text | |
| index | No | Which match to tap | |
| match | No | exact | |
| serial | No | ||
| resource_id | No | Selector: resource-id, full or short ('save_button') | |
| content_desc | No | Selector: content description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| serial | Yes | ||
| dry_run | Yes | ||
| matched | No | ||
| match_count | No |