v97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-31135175384.2 KB
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.

steps_per_segmentinteger

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

step_delay_msinteger

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

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.

duration_msinteger

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

Response

Drag performed