browser_drag
Drags one page element to another using source and destination snapshot refs, enabling reliable drag-and-drop automation in browser sessions.
Instructions
Perform drag and drop between two elements identified by their snapshot refs.
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": {
"startRef": "<startRef>",
"endRef": "<endRef>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endRef | Yes | Exact destination element ref from the page snapshot. | |
| startRef | Yes | Exact source element ref from the page snapshot. | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). | |
| endElement | No | Human-readable description of destination element. | |
| startElement | No | Human-readable description of source element. |