iphone_drag
Touch and hold an item on a connected iPhone, then move and drop it to rearrange home-screen icons, reorder list rows, drag text/files/photos, or adjust sliders precisely.
Instructions
Touch and hold an item, move it and drop it: rearrange home-screen icons, reorder list rows, drag text, files or photos, move a slider precisely.
Unlike iphone_swipe, the finger first rests on the start point, so iOS picks the item up instead of
scrolling. Look again afterwards: whether the item moved depends on the app.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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "iphone_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start x in iOS points (where the finger touches and holds). | |
| x2 | Yes | End x in iOS points (where the item is dropped). | |
| y1 | Yes | Start y in iOS points. | |
| y2 | Yes | End y in iOS points. | |
| duration_ms | No | Duration of the movement in milliseconds (100–10000). | |
| hold_seconds | No | How long to hold before moving (0.1–5 s); iOS needs about 0.5 s to pick an item up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |