browser_drag
Automate drag-and-drop actions between webpage elements using Playwright. Define source and target elements to simulate user interactions programmatically.
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": {
"startTarget": "<startTarget>",
"endTarget": "<endTarget>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startElement | No | Human-readable source element description used to obtain the permission to interact with the element | |
| startTarget | Yes | Exact target element reference from the page snapshot, or a unique element selector | |
| endElement | No | Human-readable target element description used to obtain the permission to interact with the element | |
| endTarget | Yes | Exact target element reference from the page snapshot, or a unique element selector |