drag
Simulates pointer press, move, and release between two selectors and dispatches text/plain HTML5 dataTransfer data so drop listeners receive the payload.
Instructions
Press on fromSelector, move to toSelector, and release. Also sends an HTML5 drag with text/plain dataTransfer so drop listeners receive the payload. Pass data to override the source text.
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": {
"fromSelector": "<fromSelector>",
"toSelector": "<toSelector>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | text/plain payload. Defaults to the source element's text. | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. | |
| toSelector | Yes | ||
| fromSelector | Yes |