drag
Simulate a pointer move from an element ref or x,y coordinates to another point, with optional speed and press/hold timing for precise UI interaction and drop confirmation.
Instructions
Drag between two points, each an element ref (@e5) or raw coordinates (100,200).
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": {
"from": "<from>",
"to": "<to>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Drag end: element ref (e.g. @e7 or e7) or "x,y" coordinates. | |
| from | Yes | Drag start: element ref (e.g. @e5 or e5) or "x,y" coordinates. | |
| velocity | No | Drag speed in points/sec (default: 500). 100-250 for slow/precise, 1000+ for fast. | |
| session_id | No | Session ID to target. Optional: falls back to the MCP-server-held dev_start session, then this project's `vibeview dev --detach` state, if either is available. | |
| hold_duration | No | Milliseconds to hold at the destination after the drag (default: 0). Use 500+ for drop confirmation. | |
| press_duration | No | Milliseconds to press before the drag starts (default: 60). Use 500+ for long-press reorder. |