ghost_drag
Perform mouse drag actions from a start point to an end point using coordinates or UI elements, enabling operations like reordering list rows or adjusting sliders.
Instructions
Click-hold at a start point, move to an end point, release. Each endpoint may be raw coords (from_x/from_y, to_x/to_y) OR an element (from_name/from_role, to_name/to_role) resolved to its center - e.g. drag a list row onto another, or a slider handle.
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": "ghost_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | ||
| to_y | No | ||
| from_x | No | ||
| from_y | No | ||
| to_name | No | End element name (instead of to_x/y) | |
| to_role | No | End element role | |
| from_name | No | Start element name (instead of from_x/y) | |
| from_role | No | Start element role |