drag
Simulate a press-and-move touch gesture between two points on an iOS device or simulator to move items or sliders, using endpoints from the same screenshot or element list.
Instructions
Press, hold, then move and release a touch between two points. Obtain both endpoints from the same take_screenshot or list_elements observation.
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": {
"start": "<start>",
"end": "<end>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| hold_ms | No | ||
| device_id | No | ||
| timeout_ms | No | ||
| duration_ms | No |