computer::act
Drive the desktop: click, right_click, double_click, move, drag, scroll, type, press, or hotkey. Address by pixel coordinates read off the screenshot (top-left origin).
- actionstringrequired
What to do: `click`, `right_click`, `double_click`, `move`, `drag`, `scroll`, `type`, `press`, or `hotkey`.
- buttonstring
Mouse button for `drag` (`left`, `right`, `middle`). Default `left`.
- keysstring[]
Keys for `press`/`hotkey`: a single key (`["enter"]`) or a chord (`["ctrl", "c"]`).
- scroll_xinteger· int64
Horizontal scroll amount for `action=scroll`. Default 0.
- scroll_yinteger· int64
Vertical scroll amount for `action=scroll`; positive scrolls down. Default 3.
- session_idstringrequired
- textstring
Text to type, for `action=type`.
- to_xinteger· int64
Drag end x (with `to_y`), for `action=drag`.
- to_yinteger· int64
Drag end y.
- xinteger· int64
Target x (pixels). Required for click/right_click/double_click/move and the drag start; the scroll anchor defaults to screen center.
- yinteger· int64
Target y (pixels).
- detailstringrequired
What was done, for the transcript.
- okbooleanrequired