pointer
Control the mouse cursor on Hyprland: move, click, drag, or scroll in global coordinates. Optionally capture desktop, screenshot, or focused window elements after the action.
Instructions
Mouse in global coordinates. action='move' (x,y) | 'click' (optional
x,y first; button left/right/middle; double=true) | 'drag' (x,y →
to_x,to_y holding button) | 'scroll' (scroll_dy notches, positive =
content down; optional x,y first). then appends the result to this
call so you skip a round-trip: 'desktop' a fresh snapshot, 'screenshot'
a stable capture, 'ui' the focused window's elements with current
values, 'none' (default) nothing. allow_auth=true overrides the
refusal to click over a system authentication dialog. The pointer is
the human's own cursor, so it never runs in the background: it is
refused where the input would land on a window other than the one the
human is in (press controls there with click_ui), unless
background=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| then | No | none | |
| to_x | No | ||
| to_y | No | ||
| action | Yes | ||
| button | No | left | |
| double | No | ||
| scroll_dx | No | ||
| scroll_dy | No | ||
| allow_auth | No | ||
| background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |