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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "drag"
}
}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". |