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
| Class | Meaning |
|---|---|
read | Looks, changes nothing. |
write | Creates or changes files. |
destructive | Removes or stops something. |
exec | Runs a program: can do anything the user can. |
network | Reaches other hosts on the network. |
screen | Sees the machine’s screen and windows. Opt-in: never in the default ceiling. |
control | Moves the pointer, presses keys, types, opens apps. Opt-in like Screen. |
Tools
read
| Tool | What it does |
|---|---|
fs_list | List a folder on the machine: name, kind (file, dir, symlink), size and change time of each entry, sorted by name. |
fs_read | Read a file on the machine, exactly as stored: text as text, anything else as base64. |
fs_search | Find files under a folder by name pattern (*, ?) and/or by plain text inside them; returns paths, and with content the first matching line. |
fs_stat | Facts 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_search | What 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_list | The 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_info | What 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_output | A task’s screen as text, whether it runs. |
write
| Tool | What it does |
|---|---|
fs_edit | Replace exact text in a text file (up to 4 MiB): old must occur exactly once, or set replace_all. |
fs_write | Create a file or replace it whole, atomically (a half-written file is never seen). |
destructive
| Tool | What it does |
|---|---|
fs_delete | Remove 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_kill | Send a signal to one process of the user cmdop runs as (default term) and wait up to 3 s for it to end. |
exec
| Tool | What it does |
|---|---|
exec_run | Run one command on the machine and wait for it: exit code, stdout and stderr apart, whether it timed out. |
task_start | Start a command in a terminal on the machine. |
task_stop | Stop a task: SIGTERM to its process group, SIGKILL after 5 seconds. |
screen
| Tool | What it does |
|---|---|
screen_capture | A screenshot of a display, a window or a region, as a PNG (default longest side 1280 px). |
screen_info | What 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_snapshot | The accessibility tree of a window as text, each element with an id that ui_act and the pointer tools accept. |
ui_wait | Wait until an element, text or window appears or is gone, or the screen is stable, for at most 30 s. |
window_list | Windows 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
| Tool | What it does |
|---|---|
app_open | Launch or focus an app, or open a file in it. |
control_release | Give control back: release held keys and buttons and end the lease, so the owner can use the machine at once. |
key_press | Press one key with optional modifiers, to the frontmost app. |
pointer_click | Click an element or an image pixel (from the latest screen_capture of that display; without one, stale_capture). |
pointer_drag | Press, drag along a path of image pixels (or between two elements) and release. |
pointer_move | Move the pointer without clicking, for hover menus and tooltips. |
pointer_scroll | Scroll the wheel at an element or an image pixel by lines (-10..10 on each axis). |
text_type | Type text into the focused field. |
ui_act | Act on an element of the latest ui_snapshot by id, through the accessibility API: invoke, set a value, focus, toggle, expand. |