browser_drag
Simulate drag and drop between two elements by providing source and target references, enabling precise UI automation in browser sessions.
Instructions
Perform drag and drop between two elements
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": {
"startElement": "<startElement>",
"startRef": "<startRef>",
"endElement": "<endElement>",
"endRef": "<endRef>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endRef | Yes | Exact target element reference from the page snapshot | |
| startRef | Yes | Exact source element reference from the page snapshot | |
| sessionId | No | Target session ID. Omit to use the active session. | |
| endElement | Yes | Human-readable target element description used to obtain the permission to interact with the element | |
| startElement | Yes | Human-readable source element description used to obtain the permission to interact with the element |