Skip to Content
ReferenceToolsTools

Tools

Every tool a machine offers, grouped by risk class. An agent may call a tool only when its grant and the machine’s ceiling both allow the tool’s class.

Risk classes

ClassMeaning
readLooks, changes nothing.
writeCreates or changes files.
destructiveRemoves or stops something.
execRuns a program: can do anything the user can.
networkReaches other hosts on the network.
screenSees the machine’s screen and windows. Opt-in: never in the default ceiling.
controlMoves the pointer, presses keys, types, opens apps. Opt-in like Screen.

Tools

read

ToolWhat it does
fs_listList a folder on the machine: name, kind (file, dir, symlink), size and change time of each entry, sorted by name.
fs_readRead a file on the machine, exactly as stored: text as text, anything else as base64.
fs_searchFind files under a folder by name pattern (*, ?) and/or by plain text inside them; returns paths, and with content the first matching line.
fs_statFacts about one file or folder without reading it: kind, size, change and creation time, permission bits, whether it is writable, a symlink’s target; with…
journal_searchWhat was done on one machine, kept on it: tool calls with their arguments as kept and task starts and ends, by author, tool, task, time and text.
proc_listThe processes of the user cmdop runs as that a person or an agent started (shells, their children, agent CLIs), with pid, parent, command line, working…
sys_infoWhat the machine is: host name, OS and version, architecture, CPUs, memory, disks with free space, uptime, the user cmdop runs as and its home folder.
task_outputA task’s screen as text, whether it runs.

write

ToolWhat it does
fs_editReplace exact text in a text file (up to 4 MiB): old must occur exactly once, or set replace_all.
fs_writeCreate a file or replace it whole, atomically (a half-written file is never seen).

destructive

ToolWhat it does
fs_deleteRemove a file or folder by moving it to the user’s trash (macOS ~/.Trash, Linux the freedesktop trash), so the owner can put it back.
proc_killSend a signal to one process of the user cmdop runs as (default term) and wait up to 3 s for it to end.

exec

ToolWhat it does
exec_runRun one command on the machine and wait for it: exit code, stdout and stderr apart, whether it timed out.
task_startStart a command in a terminal on the machine.
task_stopStop a task: SIGTERM to its process group, SIGKILL after 5 seconds.

screen

ToolWhat it does
screen_captureA screenshot of a display, a window or a region, as a PNG (default longest side 1280 px).
screen_infoWhat can be seen and driven on this machine: displays with size and scale, the frontmost app, the cursor, whether the screen is locked, whether the OS…
ui_snapshotThe accessibility tree of a window as text, each element with an id that ui_act and the pointer tools accept.
ui_waitWait until an element, text or window appears or is gone, or the screen is stable, for at most 30 s.
window_listWindows of the apps on screen, front to back: id, app, title, bounds in screen points, focus, whether visible, and whether control is allowed for the app.

control

ToolWhat it does
app_openLaunch or focus an app, or open a file in it.
control_releaseGive control back: release held keys and buttons and end the lease, so the owner can use the machine at once.
key_pressPress one key with optional modifiers, to the frontmost app.
pointer_clickClick an element or an image pixel (from the latest screen_capture of that display; without one, stale_capture).
pointer_dragPress, drag along a path of image pixels (or between two elements) and release.
pointer_moveMove the pointer without clicking, for hover menus and tooltips.
pointer_scrollScroll the wheel at an element or an image pixel by lines (-10..10 on each axis).
text_typeType text into the focused field.
ui_actAct on an element of the latest ui_snapshot by id, through the accessibility API: invoke, set a value, focus, toggle, expand.