drag
Simulates real mouse press-move-release between a source and destination to automate HTML5 and pointer-event move-and-drop interactions in Chrome.
Instructions
Drag from one target to another with real mouse events; works for HTML5 drag-and-drop and pointer-event drags.
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 | A ref from snapshot/find ("e12"), a point "x,y" in the last screenshot's pixels, or a Playwright selector (text=…, role=button[name="…"], #id, css=…, xpath=…) | |
| tab | No | Tab id such as "t3"; default is the active tab | |
| from | Yes | A ref from snapshot/find ("e12"), a point "x,y" in the last screenshot's pixels, or a Playwright selector (text=…, role=button[name="…"], #id, css=…, xpath=…) |