drag
Perform a real pointer drag from a source to a target using screen coordinates or element handles, to reorder lists, move sliders, or reach drop targets that lack accessibility paths.
Instructions
Drag-and-drop with real pointer events: press at the source, move to
the target over duration seconds, release.
Give either screen coordinates (from_x/from_y, to_x/to_y, top-left origin in points) or element handles (from_handle/to_handle, from find_elements or get_tree); a handle is resolved to its on-screen center. You can mix: a handle on one end and coordinates on the other.
For drop targets that have no accessibility path, editors that only accept drops from another panel, list reordering, sliders. Delivery is system-global, so both ends must be visible and the window on top.
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 |
|---|---|---|---|
| to_x | No | ||
| to_y | No | ||
| button | No | left | |
| from_x | No | ||
| from_y | No | ||
| duration | No | ||
| to_handle | No | ||
| from_handle | No |