browser_drag_and_drop
Drag a web element and drop it onto another target element using locator strategies, enabling automated drag-and-drop interactions in browser tests.
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": {
"by": "<by>",
"value": "<value>",
"targetBy": "<targetBy>",
"targetValue": "<targetValue>"
},
"name": "browser_drag_and_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Locator strategy to find element | |
| value | Yes | Value for the locator strategy | |
| timeout | No | Maximum time to wait for element in milliseconds | |
| targetBy | Yes | Locator strategy to find target element | |
| targetValue | Yes | Value for the target locator strategy |