browser_drag_and_drop
Drag a page element from one CSS selector to another to mimic user drag-and-drop behavior, enabling interaction testing in automated browser sessions.
Instructions
Drag and drop an 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": {
"sourceSelector": "<sourceSelector>",
"targetSelector": "<targetSelector>"
},
"name": "browser_drag_and_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceSelector | Yes | CSS selector of the source element | |
| targetSelector | Yes | CSS selector of the target element |