device_tap
Submit a tap at raw screen coordinates on a mobile device, with optional long press and screenshot verification.
Instructions
⚠️ Low-level: Tap at raw screen coordinates. Prefer tap_on_element for reliability. Use coordinates from the physical screenshot (originalWidth/originalHeight). On Android, this tool automatically scales coordinates if a display override (logical resolution) is detected.
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": {
"deviceId": "<deviceId>",
"platform": "<platform>",
"x": "<x>",
"y": "<y>"
},
"name": "device_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in original screen pixels | |
| y | Yes | Y coordinate in original screen pixels | |
| verify | No | If true, capture and return a screenshot right after the tap. | |
| deviceId | Yes | ||
| duration | No | Optional duration in ms. If > 0, performs a long press. | |
| platform | Yes |