Tap
tapPress a React Native element by text, testID, or x/y coordinates; use duration_ms for long press and via for JS handler or OS touch, returning coordinates, path, and screen changes.
Instructions
Tap an element by text, testID, or x+y coordinates. Pass duration_ms for a long press. via picks the delivery path (js = call the component's own press handler through the app runtime, os = a real simulator/device touch, default auto). Returns the coordinates tapped, the path used, and what changed on screen.
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 | ||
| via | No | ||
| text | No | ||
| device | No | ||
| testID | No | ||
| duration_ms | No |