Drag
dragDrag from a start point to an end point on the page, optionally relative to a specific element. Use for reordering lists, moving sliders, or manipulating canvas objects. Returns an updated page snapshot.
Instructions
Drag from a source point to a target point (optionally relative to an element via eid). Use for reordering lists, moving sliders/handles, or manipulating canvas objects. Returns a fresh page snapshot with any resulting changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eid | No | Optional element ID. When provided, coordinates are relative to the element top-left corner. | |
| page_id | No | The ID of the page. | |
| source_x | Yes | X coordinate of the drag start point. | |
| source_y | Yes | Y coordinate of the drag start point. | |
| target_x | Yes | X coordinate of the drag end point. | |
| target_y | Yes | Y coordinate of the drag end point. | |
| modifiers | No | Modifier keys to hold during the drag (e.g., Shift for constrained rotation, Control for copy-drag). |