Drag and drop
dragSimulates real mouse movement from a start element or viewport point to an end target, enabling mouse-driven and HTML5 drag-and-drop interactions in browser automation.
Instructions
Drags from one element or point to another with real mouse events; supports both mouse-driven and HTML5 drag-and-drop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point in viewport CSS pixels (instead of toRef). | |
| from | No | Start point in viewport CSS pixels (instead of fromRef). | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| toRef | No | Element ref from page_snapshot or find, e.g. "e12". | |
| fromRef | No | Element ref from page_snapshot or find, e.g. "e12". |