Drag mouse
Press the left button at one coordinate, move, and release at another.
{"ok": true}, an optional button field (left, right, or middle) picks the button, and ?screen= is ignored.Path parameters
instance_id is not accepted here and fails with 500.Query parameters
404 rather
than falling back to the default screen.Body parameters
All four coordinates are required, and each must be a non-negative integer.0 is a valid coordinate. A missing, negative, or non-integer coordinate returns 400.
Response
true on a 200. A failed drag is an error status.drag.null on a 200.null on a 200.Example
Response
Errors
request_id. Quote it in support requests. When the computer agent itself
answered non-2xx, the body additionally carries upstream_status.
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Path Parameters
Computer ID
Query Parameters
Which screen to act on. Omit for the boot screen. An unknown id returns 404 rather than falling back.
Body
On Linux the drag always uses the left button. There is no speed setting. Each coordinate must be a non-negative integer: 0 is a valid coordinate, and a missing, negative, or non-integer coordinate is rejected with 400.
X coordinate the drag starts at, in pixels from the left edge. A non-negative integer.
x >= 0Y coordinate the drag starts at, in pixels from the top edge. A non-negative integer.
x >= 0X coordinate the drag ends at, in pixels from the left edge. A non-negative integer.
x >= 0Y coordinate the drag ends at, in pixels from the top edge. A non-negative integer.
x >= 0Response
Drag performed
Always true on a 200. A failed action is an error status.
true
The action performed: click, mouse_move, drag, type, key_press, scroll, or wait.
Echo of what was performed. Its fields depend on the action.
Always null on a 200.
Always null on a 200.