glass_drag
Perform a mouse drag from one coordinate to another within a window. Optionally hold modifier keys for multi-select or range-select actions.
Instructions
Drag with a button held from (x1,y1) to (x2,y2) — window-relative coordinates. Optional modifiers held during the action, e.g. ["ctrl"] or ["ctrl","shift"] for multi/range-select.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| button | No | ||
| modifiers | No | Modifier keys to hold during the action, e.g. ["ctrl"] or ["ctrl","shift"] for multi/range-select. | |
| duration_ms | No | Span the drag's motion over this many milliseconds so a frame-based GUI samples the path across multiple frames (and registers the drag even while it repaints). Default 200. Lower = faster but coarser. |