Skip to main content
POST
Scroll
Moves the pointer to x, y and scrolls the wheel there. A Windows computer scrolls at the pointer’s current position instead.
On Linux, always send x and y. The pointer is moved before every scroll, and omitting either coordinate moves it to 0 on that axis. A request of {"direction": "down", "amount": 3} warps the pointer to the top-left corner and scrolls whatever happens to be under it. On Linux there is no way to scroll at the pointer’s current position through this endpoint.
A Windows computer scrolls at the pointer’s current position and ignores ?screen=. Send it only direction and amount, both required: direction must be up or down and amount from 1 to 50. Any other field, including x and y, or a value outside those rules returns 400. A successful response is {"ok": true}.

Path parameters

string
required
Computer ID (UUID). An instance_id is not accepted here and fails with 500.

Query parameters

string
Which screen to scroll on. Optional. Omit it to act on the screen the computer booted with. An unknown id returns 404 rather than falling back to the default screen. A Windows computer ignores this parameter.

Body parameters

integer
required
X coordinate to move the pointer to before scrolling, in pixels from the left edge. Nominally optional, but omitting it moves the pointer to x = 0. See the warning above. A Windows computer refuses this field with 400.
integer
required
Y coordinate to move the pointer to before scrolling, in pixels from the top edge. Nominally optional, but omitting it moves the pointer to y = 0. See the warning above. A Windows computer refuses this field with 400.
string
default:"down"
Scroll direction: up or down. Optional on Linux: omitting it scrolls down, and so does any value other than the exact string up. Required on Windows.
integer
default:"1"
Number of wheel clicks. Optional on Linux: omitting it, or sending 0, scrolls once, and a negative value moves the pointer, scrolls nothing, and still returns 200. Required on Windows, from 1 to 50.

Response

boolean
Always true on a 200. A failed scroll is an error status.
string
Always scroll.
object
Carries direction and amount after defaults are applied. The coordinates the pointer was moved to are not echoed back.

Example

Response

Errors

Every failure raised after the request leaves the API layer also carries a request_id. Quote it in support requests. When the computer agent itself answered non-2xx, the body additionally carries upstream_status.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Computer ID

Query Parameters

screen
string

Which screen to act on. Omit for the boot screen. An unknown id returns 404 rather than falling back.

Body

application/json
x
integer
required

X coordinate to move the pointer to before scrolling, in pixels from the left edge. The pointer is moved before every scroll, so omitting this warps it to x = 0 and scrolls whatever is under that point. Always send it.

y
integer
required

Y coordinate to move the pointer to before scrolling, in pixels from the top edge. The pointer is moved before every scroll, so omitting this warps it to y = 0 and scrolls whatever is under that point. Always send it.

direction
enum<string>
default:down

Scroll direction. Optional. Omitting it scrolls down, and so does any value other than the exact string up.

Available options:
up,
down
amount
integer
default:1

Number of wheel clicks. Optional. Omitting it, or sending 0, scrolls once. A negative value moves the pointer, scrolls nothing, and still returns 200.

Response

Scroll performed

success
boolean

Always true on a 200. A failed action is an error status.

Example:

true

action
string

The action performed: click, mouse_move, drag, type, key_press, scroll, or wait.

details
object

Echo of what was performed. Its fields depend on the action.

error
null

Always null on a 200.

error_type
null

Always null on a 200.