Commands
agent-desktop has 61 commands in 12 groups. Every command prints one JSON envelope with version, ok, command, and either data or error; JSON output defines it.
--help prints the flags of the binary you installed. Flags that apply to every command, such as --headed, --session, --agent-id, --trace, and the post-action --wait-for flags, are documented once in Configuration.
| Command | What it does |
|---|---|
| App and window | |
launch | Start an app, or attach to a running one, and return once its process is running. |
close-app | Quit an app and all its windows, or end its process with --force. |
list-apps | List running GUI apps. |
list-windows | List windows with ids, titles, bounds, and focus state. |
focus-window | Bring a window to the front and confirm the OS reports it focused. |
resize-window | Set a window's width and height. |
move-window | Move a window to screen coordinates. |
minimize | Minimize a window. |
maximize | Maximize or zoom a window. |
restore | Restore a minimized or maximized window. |
| Observation | |
snapshot | Capture the accessibility tree as JSON with qualified refs. |
find | Search for elements by role, name, value, text, description, native id, or state. |
get | Read one property of a ref: text, value, title, bounds, role, or states. |
is | Check one state of a ref: visible, enabled, checked, focused, expanded, or selected. |
screenshot | Capture an app window or a display as an image. |
list-displays | List displays with bounds, scale factor, and primary flag. |
list-surfaces | List the overlays an app presents now, such as sheets and menus. |
open-system-surface | Raise an OS shell surface and return the window it presents. |
| Interaction | |
click | Activate an element with its primary action. |
double-click | Double-click an element. Usually needs --headed. |
triple-click | Triple-click an element. Needs --headed. |
right-click | Open an element's context menu. |
type | Insert text into a text target. |
set-value | Write a value directly through the accessibility value path. |
clear | Empty a text target. |
focus | Move keyboard focus to an element without clicking it. |
select | Pick an option in a list, dropdown, or combo box. |
toggle | Flip a checkbox or switch. |
check | Set a checkbox or switch to checked, idempotently. |
uncheck | Set a checkbox or switch to unchecked, idempotently. |
expand | Expand a disclosure triangle, tree item, or accordion. |
collapse | Collapse a disclosure triangle, tree item, or accordion. |
| Scroll | |
scroll | Scroll a scroll area in a direction by a number of units. |
scroll-to | Bring an element into the visible area. |
| Keyboard | |
press | Send a key combo such as return or ctrl+s. |
key-down | Reserved. Fails closed instead of holding a key. |
key-up | Reserved. Fails closed instead of releasing a key. |
| Mouse | |
hover | Move the cursor to an element's center or to coordinates. Needs --headed. |
drag | Drag from one element or point to another. Needs --headed. |
mouse-move | Move the cursor to screen coordinates. Needs --headed. |
mouse-click | Click at screen coordinates. Needs --headed. |
mouse-down | Reserved. Fails closed instead of pressing a button. |
mouse-up | Reserved. Fails closed instead of releasing a button. |
mouse-wheel | Scroll the mouse wheel at screen coordinates. Needs --headed. |
| Notifications | |
list-notifications | List entries in the OS notification surface. |
dismiss-notification | Dismiss one notification by index. |
dismiss-all-notifications | Dismiss every notification, optionally for one app. |
notification-action | Press an action button on a notification. |
| Clipboard | |
clipboard-get | Read text, an image, or file references from the clipboard. |
clipboard-set | Write text, an image, or file references to the clipboard. |
clipboard-clear | Clear the clipboard. |
| Wait | |
wait | Block until a time, element, window, text, menu, event, or notification condition holds. |
| System | |
status | Report adapter health, platform, permissions, and supported surfaces. |
permissions | Check, request, or guide the grant of OS permissions. |
version | Print the version, target architecture, and OS. |
skills | List and read the skills compiled into the binary. |
session | Start, end, list, and clean up sessions. |
cursor-overlay | Configure the presentation-only agent cursor. |
trace | Read merged session trace timelines. |
| Sandboxes | |
sandbox | Install a provider, then create, start, run commands in, stop, and remove sandboxes. |
| Batch | |
batch | Run a bounded, sequential, non-atomic list of commands in one process. |