Click Screen
mobile_click_on_screen_at_coordinatesTap any screen position by coordinates, element ref, or unique label on iOS and Android devices. Screenshot-based taps are validated to prevent stale coordinates.
Instructions
Click on the screen at x,y coordinates, on an element by its ref (e.g. "@e5"), or on one exact unique target object with text/label/name/identifier/type. Prefer ref or a unique target when the element is listed. Ambiguous targets are rejected. Screenshot coordinates require the snapshotId returned by mobile_take_screenshot; the server validates that the display and geometry have not changed before tapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | The x coordinate. Required unless ref is given. With coordinateSpace=screenshot this is a pixel position in the referenced screenshot. | |
| y | No | The y coordinate. Required unless ref is given. With coordinateSpace=screenshot this is a pixel position in the referenced screenshot. | |
| ref | No | Element ref from mobile_list_elements_on_screen, e.g. "@e5". Takes precedence over x,y | |
| device | Yes | The device identifier to use. Use mobile_list_available_devices to find which devices are available to you. | |
| target | No | Exact element attributes to match. The match must be unique and actionable; fuzzy or ambiguous matches are rejected. | |
| snapshotId | No | Snapshot ID from mobile_take_screenshot, required when coordinateSpace=screenshot. | |
| coordinateSpace | No | Coordinate frame for x,y. Use screenshot only with the snapshotId returned by mobile_take_screenshot. | device |