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.

agent-desktop --help               # list every command
agent-desktop <command> --help     # flags and arguments for one command
agent-desktop skills get desktop   # the agent usage guide compiled into the binary

--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.

CommandWhat it does
App and window
launchStart an app, or attach to a running one, and return once its process is running.
close-appQuit an app and all its windows, or end its process with --force.
list-appsList running GUI apps.
list-windowsList windows with ids, titles, bounds, and focus state.
focus-windowBring a window to the front and confirm the OS reports it focused.
resize-windowSet a window's width and height.
move-windowMove a window to screen coordinates.
minimizeMinimize a window.
maximizeMaximize or zoom a window.
restoreRestore a minimized or maximized window.
Observation
snapshotCapture the accessibility tree as JSON with qualified refs.
findSearch for elements by role, name, value, text, description, native id, or state.
getRead one property of a ref: text, value, title, bounds, role, or states.
isCheck one state of a ref: visible, enabled, checked, focused, expanded, or selected.
screenshotCapture an app window or a display as an image.
list-displaysList displays with bounds, scale factor, and primary flag.
list-surfacesList the overlays an app presents now, such as sheets and menus.
open-system-surfaceRaise an OS shell surface and return the window it presents.
Interaction
clickActivate an element with its primary action.
double-clickDouble-click an element. Usually needs --headed.
triple-clickTriple-click an element. Needs --headed.
right-clickOpen an element's context menu.
typeInsert text into a text target.
set-valueWrite a value directly through the accessibility value path.
clearEmpty a text target.
focusMove keyboard focus to an element without clicking it.
selectPick an option in a list, dropdown, or combo box.
toggleFlip a checkbox or switch.
checkSet a checkbox or switch to checked, idempotently.
uncheckSet a checkbox or switch to unchecked, idempotently.
expandExpand a disclosure triangle, tree item, or accordion.
collapseCollapse a disclosure triangle, tree item, or accordion.
Scroll
scrollScroll a scroll area in a direction by a number of units.
scroll-toBring an element into the visible area.
Keyboard
pressSend a key combo such as return or ctrl+s.
key-downReserved. Fails closed instead of holding a key.
key-upReserved. Fails closed instead of releasing a key.
Mouse
hoverMove the cursor to an element's center or to coordinates. Needs --headed.
dragDrag from one element or point to another. Needs --headed.
mouse-moveMove the cursor to screen coordinates. Needs --headed.
mouse-clickClick at screen coordinates. Needs --headed.
mouse-downReserved. Fails closed instead of pressing a button.
mouse-upReserved. Fails closed instead of releasing a button.
mouse-wheelScroll the mouse wheel at screen coordinates. Needs --headed.
Notifications
list-notificationsList entries in the OS notification surface.
dismiss-notificationDismiss one notification by index.
dismiss-all-notificationsDismiss every notification, optionally for one app.
notification-actionPress an action button on a notification.
Clipboard
clipboard-getRead text, an image, or file references from the clipboard.
clipboard-setWrite text, an image, or file references to the clipboard.
clipboard-clearClear the clipboard.
Wait
waitBlock until a time, element, window, text, menu, event, or notification condition holds.
System
statusReport adapter health, platform, permissions, and supported surfaces.
permissionsCheck, request, or guide the grant of OS permissions.
versionPrint the version, target architecture, and OS.
skillsList and read the skills compiled into the binary.
sessionStart, end, list, and clean up sessions.
cursor-overlayConfigure the presentation-only agent cursor.
traceRead merged session trace timelines.
Sandboxes
sandboxInstall a provider, then create, start, run commands in, stop, and remove sandboxes.
Batch
batchRun a bounded, sequential, non-atomic list of commands in one process.