Maps a single Base RemoteBrowserHumanInput (a human-takeover pointer/key event) to the
computer-use BrowserAction the adapter executes. Exhaustive over input.Kind.
pointer-move → MouseMoveAction at X/Y (cursor move, no click).
pointer-click → ClickAction at X/Y, carrying the chosen mouse Button and any held
Modifiers (e.g. Shift-click to extend a text selection).
pointer-down / pointer-up → MouseDownAction / MouseUpAction at X/Y — the two
halves of a click-drag (e.g. drag-selecting text). The surface emits down → moves → up over time.
key → KeypressAction carrying the key plus any held Modifiers (e.g. Ctrl/Cmd+A select-all).
text → TypeAction carrying the pasted Text (no Selector — it inserts into the page's
currently-focused element). Reuses the exact same insert-text machinery the agent's type action uses,
so a human paste and an agent type follow one code path. This is the paste-in half of clipboard support.
scroll → ScrollAction carrying DeltaX/DeltaY. The adapter dispatches a CDP mouse-wheel
(page.mouse.wheel) at the CURRENT cursor position; the surface emits a pointer-move before/with
each scroll, so the cursor already sits over the scroll target's X/Y and the wheel lands there.
Maps a single Base RemoteBrowserHumanInput (a human-takeover pointer/key event) to the computer-use BrowserAction the adapter executes. Exhaustive over
input.Kind.pointer-move→ MouseMoveAction atX/Y(cursor move, no click).pointer-click→ ClickAction atX/Y, carrying the chosen mouseButtonand any heldModifiers(e.g. Shift-click to extend a text selection).pointer-down/pointer-up→ MouseDownAction / MouseUpAction atX/Y— the two halves of a click-drag (e.g. drag-selecting text). The surface emits down → moves → up over time.key→ KeypressAction carrying the key plus any heldModifiers(e.g. Ctrl/Cmd+A select-all).text→ TypeAction carrying the pastedText(noSelector— it inserts into the page's currently-focused element). Reuses the exact same insert-text machinery the agent'stypeaction uses, so a human paste and an agent type follow one code path. This is the paste-in half of clipboard support.scroll→ ScrollAction carryingDeltaX/DeltaY. The adapter dispatches a CDP mouse-wheel (page.mouse.wheel) at the CURRENT cursor position; the surface emits apointer-movebefore/with each scroll, so the cursor already sits over the scroll target'sX/Yand the wheel lands there.