drag
Simulate a real mouse press-and-move from one element or point to another using refs or CSS selectors to automate UI interactions.
Instructions
Drag from one point/element to another (refs or CSS selectors) using real mouse events.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target element ref or CSS selector | |
| from | Yes | Source element ref or CSS selector | |
| tabId | No |