drag
Execute a slow touch gesture from one screen point to another to move items via drag-and-drop on an Android emulator.
Instructions
Perform a drag gesture from one point to another (slower than swipe, for drag & drop)
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": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Starting X coordinate | |
| x2 | Yes | Ending X coordinate | |
| y1 | Yes | Starting Y coordinate | |
| y2 | Yes | Ending Y coordinate | |
| duration | No | Duration in milliseconds (default: 1000) |