Drag and drop
dragMove from one element or point to another using real mouse events when CDP is available, with synthetic pointer events as fallback for pointer-based UIs and HTML5 drop zones.
Instructions
Drag from one element/point to another using real mouse events when CDP is available, with synthetic pointer/drag events as fallback. Works for pointer-based UIs and many HTML5 drop zones.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toX | No | ||
| toY | No | ||
| fromX | No | ||
| fromY | No | ||
| steps | No | ||
| tabId | No | ||
| toRef | No | ||
| frameId | No | ||
| fromRef | No | ||
| trusted | No | ||
| duration | No | ||
| toSelector | No | ||
| fromSelector | No |