v97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-31135175384.2 KB
Browser Computer Controls

Press one or more keys on the host computer

post/browsers/{id}/computer/press_key

Path parameters

idstring required

Browser session ID

Request body

keysstring[] required

List of key symbols to press. Each item should be a key symbol supported by xdotool (see X11 keysym definitions). Examples include "Return", "Shift", "Ctrl", "Alt", "F5". Items in this list could also be combinations, e.g. "Ctrl+t" or "Ctrl+Shift+Tab".

durationinteger

Duration to hold the keys down in milliseconds. If omitted or 0, keys are tapped.

hold_keysstring[]

Optional modifier keys to hold during the key press sequence.

Response

Keys pressed successfully