browser_drag
Simulate drag-and-drop by moving a source element onto a target element using selectors or element references, enabling automated UI interactions.
Instructions
Drag one element (ref eN or selector) and drop it onto another element.
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": {
"startTarget": "<startTarget>",
"endTarget": "<endTarget>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTarget | Yes | ||
| endElement | No | ||
| startTarget | Yes | Exact target reference from a snapshot (e.g. 'e5'), or a unique Playwright selector (CSS/text). | |
| startElement | No | Human-readable element description used to obtain permission to interact with the element. |