Browser Computer Controls

Move the mouse cursor to the specified coordinates on the browser instance

post/browsers/{id_or_name}/computer/move_mouse

Request

  • Base URL
    https://api.onkernel.com
  • URL
    https://api.onkernel.com/browsers/{id_or_name}/computer/move_mouse
  • Auth
    HTTP bearer

Path parameters

id_or_namestring required

Browser session ID or name

Request body

duration_msinteger

Target total duration in milliseconds for the mouse movement when smooth=true. Omit for automatic timing based on distance.

hold_keysstring[]

Modifier keys to hold during the move

smoothboolean

Use human-like Bezier curve path instead of instant mouse movement.

trueinteger

Y coordinate to move the cursor to

xinteger required

X coordinate to move the cursor to

Response

Mouse cursor moved

Changes

No recorded changes to this operation across all 76 revisions of this API.