browser_drag
Drag one element onto another using real mouse motion, including intermediate moves, so HTML5 drag-and-drop and pointer-event libraries register the drag.
Instructions
Drag one element onto another (refs from browser_snapshot) with real mouse motion — the intermediate moves are what make HTML5 drag-and-drop and pointer-event libraries believe the drag started.
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": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where to drop — ref or CSS selector | |
| from | Yes | What to drag — ref or CSS selector | |
| steps | No | Intermediate moves (default 12) |