tap
Locate a UI element by selector, activate its center, and wait for the screen to settle before returning an updated snapshot for verification.
Instructions
Find an element by selector and tap its center. Waits for the screen to settle, then returns a fresh snapshot — annotated if it never settled.
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 |
|---|---|---|---|
| id | No | Bare resource-id (Compose testTag), regex full-match | |
| text | No | Visible text or content-desc, regex full-match | |
| index | No | Pick the Nth match (0-based) | |
| optional | No | If true, a miss does not error | |
| device_id | No |