Drag and drop
browser_dragDrag a source element onto a target element using their snapshot references. Enables drag-and-drop UI actions in isolated browser sessions.
Instructions
Drag one element onto another (both by ref from browser_snapshot).
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": {
"sessionId": "<sessionId>",
"sourceRef": "<sourceRef>",
"sourceElement": "<sourceElement>",
"targetRef": "<targetRef>",
"targetElement": "<targetElement>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Id of the isolated browser session | |
| sourceRef | Yes | Element ref from the latest browser_snapshot (e.g. 'e12') | |
| targetRef | Yes | Element ref from the latest browser_snapshot (e.g. 'e12') | |
| sourceElement | Yes | Human description of the element (for logs/errors) | |
| targetElement | Yes | Human description of the element (for logs/errors) |