Skip to main content
POST
/
v1
/
desktop
/
mouse
/
drag
Drag the desktop mouse.
curl --request POST \
  --url http://localhost:2468/v1/desktop/mouse/drag \
  --header 'Content-Type: application/json' \
  --data '
{
  "endX": 123,
  "endY": 123,
  "startX": 123,
  "startY": 123,
  "button": "left"
}
'
{
  "x": 123,
  "y": 123,
  "screen": 123,
  "window": "<string>"
}

Body

application/json
endX
integer<int32>
required
endY
integer<int32>
required
startX
integer<int32>
required
startY
integer<int32>
required
button
enum<string>
Available options:
left,
middle,
right

Response

Desktop mouse position after drag

x
integer<int32>
required
y
integer<int32>
required
screen
integer<int32> | null
window
string | null