drag
Moves an element onto another using mouse press, step and release actions to reorder sortable lists, boards, sliders or HTML5 drop targets.
Instructions
Drags an element onto another with the mouse, for sortable lists, boards, sliders and HTML5 drag and drop: presses on 'from' (scrolled into view; waits up to 2 s for it to appear or be enabled; fails when hidden, covered or disabled), moves in steps to the centre of 'to' (which must be in the viewport) and releases. Firefox simulates HTML5 drag and drop with script events.
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 | Element to drop onto, same forms as 'from'. | |
| from | Yes | Element to drag: CSS selector, 'host >>> inner' (into an open shadow root or same-origin iframe) or snapshot ref (e12). | |
| tab_id | No | Default: the active tab. | |
| instance_id | No | Default: 'default'. |