left_click_drag
Drag from a start coordinate to an end coordinate within an app to move, select, or reposition UI elements. Uses screenshot or window coordinates with optional duration.
Instructions
Compatibility alias for drag using start_coordinate and coordinate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name, Hyprland class/title, pid, or address:0x... selector. | |
| duration | No | Drag pacing duration in seconds. Defaults to 0.2. | |
| coordinate | Yes | (x, y) coordinate in coordinate_space. Defaults to screenshot pixels from get_app_state. | |
| 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 | Yes | (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. |