Drag and drop
dragDrag one element onto another (press, move, release) using UIDs from the same snapshot. Works for native HTML5 drag-and-drop and mouse-driven sortable lists, with manual fallback via click_at and press_key if needed.
Instructions
Drag one element onto another (press, move, release).
Both uids must come from the same take_snapshot. Works for native HTML5 drag-and-drop and for mouse-driven sortable lists.
Some JS drag libraries require a stream of intermediate mousemove events that this does not emit; if a drag silently does nothing, drive it manually with click_at and press_key instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_uid | Yes | uid of the element to drop onto, from the most recent take_snapshot. | |
| from_uid | Yes | uid of the element to pick up, from the most recent take_snapshot. | |
| include_snapshot | No | Append a fresh page snapshot to the response. Worth it when this action changes the page and take_snapshot would be your next call anyway — it saves a round trip, at the cost of a much larger response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |