long_press
Press and hold at specific screen coordinates, then release to trigger context menus or other hold gestures; use swipe for dragging and verify results with UI inspection or screenshots.
Instructions
Press and hold at screen coordinates in points, then release. Use it for context menus and other hold gestures; use swipe to drag. Doesn't check that anything was hit; verify with describe_ui or screenshot.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "long_press"
}
}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) |