playwright_drag_and_drop
Drag an element to a specified drop target using CSS selectors for source and target, automating browser drag-and-drop interactions.
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": "playwright_drag_and_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceSelector | Yes | CSS selector of element to drag | |
| targetSelector | Yes | CSS selector of drop target |