latestOpenAPI 3.1.02026-08-22154287463.4 KB

858365328f92

Browser Computer Controls

Drag the mouse along a path

post/browsers/{id}/computer/drag_mouse

Path parameters

idstring required

Browser session ID

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