long_press
Presses and holds at specified screen coordinates for a set duration to trigger press-and-hold gestures on iOS devices during app testing.
Instructions
Press and hold at coordinates (points).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Points from left | |
| y | Yes | Points from top | |
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| duration | No | Seconds (default 1) |