drag
Simulate dragging from a source element to a target drop zone in Electron apps. Automates drag-and-drop testing using CSS selectors for both endpoints.
Instructions
Drag and drop from source to target 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": {
"source": "<source>",
"target": "<target>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | CSS selector for source element to drag | |
| target | Yes | CSS selector for target drop zone |