Browser Computer Controls

Drag the mouse along a path

post/browsers/{id_or_name}/computer/drag_mouse

Request

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

Path parameters

id_or_namestring required

Browser session ID or name

Request body

button'left' | 'middle' | 'right'

Mouse button to drag with

delayinteger

Delay in milliseconds between button down and starting to move along the path.

duration_msinteger

Target total duration in milliseconds for the entire drag movement when smooth=true. Omit for automatic timing based on total path length.

hold_keysstring[]

Modifier keys to hold during the drag

smoothboolean

Use human-like Bezier curves between path waypoints instead of linear interpolation. When true, steps_per_segment and step_delay_ms are ignored.

step_delay_msinteger

Delay in milliseconds between relative steps while dragging (not the initial delay).

steps_per_segmentinteger

Number of relative move steps per segment in the path. Minimum 1.

Response

Drag performed

Changes

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