cURL
curl --request POST \ --url http://localhost:2468/v1/desktop/mouse/down \ --header 'Content-Type: application/json' \ --data ' { "button": "left", "x": 123, "y": 123 } '
{ "x": 123, "y": 123, "screen": 123, "window": "<string>" }
Performs a health-gated optional pointer move followed by xdotool mousedown and returns the resulting mouse position.
xdotool mousedown
left
middle
right
Desktop mouse position after button press