Browser Drag & Drop
browser_drag_dropAutomate drag-and-drop interactions by simulating mouse events. Use for kanban boards, sortable lists, and reordering items in browser automation.
Instructions
Drag an element and drop it onto another element. Use for kanban boards, sortable lists, reordering items, or any drag-and-drop interface. Simulates a full human drag: mousedown on source → mousemove to target → mouseup on target, with proper drag events dispatched.
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": {
"sourceSelector": "<sourceSelector>",
"targetSelector": "<targetSelector>"
},
"name": "browser_drag_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. | |
| sessionId | No | Puppeteer session ID. Skips mode selection. | |
| sourceSelector | Yes | CSS selector of the element to drag. | |
| targetSelector | Yes | CSS selector of the element to drop onto. |