drag
Simulates a mouse press and move from a start point to an end point in a target app, supporting screenshot or window coordinates for automated GUI interactions like selecting or moving items.
Instructions
Drag from one screenshot/window-relative coordinate to another.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, Hyprland class/title, pid, or address:0x... selector. | |
| to_x | No | End X coordinate in coordinate_space. | |
| to_y | No | End Y coordinate in coordinate_space. | |
| from_x | No | Start X coordinate in coordinate_space. | |
| from_y | No | Start Y coordinate in coordinate_space. | |
| duration | No | Drag pacing duration in seconds. Defaults to 0.2. | |
| coordinate | No | (x, y) destination coordinate in coordinate_space. | |
| coordinate_space | No | Coordinate space. screenshot uses get_app_state pixels; window uses logical coordinates from the target window's top-left. | screenshot |
| start_coordinate | No | (x, y) starting coordinate for a drag in coordinate_space. | |
| confirmation_token | No | Externally approved, one-time challenge ID from request_confirmation for a high-risk action. |