Repository navigation
oab-computer 0.10.0
New macOS tool: ui_action (#96, refs #67)
ui_action acts on a node from a ui_snapshot result through the macOS Accessibility API. An agent can press a native-app button or fill a field without moving the cursor and, by default, without bringing the app to the front.
- Target. Pass the
snapshot_idandreffrom a recentui_snapshot(the last 4 snapshots are kept, 5 minutes each). Before acting, the ref is re-checked: same process, same role, still in the same window. If anything changed, the call fails withstale ref: … take a new ui_snapshot; it never guesses a replacement. - Actions.
press,set_value(string, number or bool; replaces the whole value),focus,show_menu,confirmandcancel, plusincrementanddecrement. An element that does not support the action is refused, with the list of actions it does support. - No cursor movement. The tool never synthesizes mouse or keyboard events.
activate: truebrings the app and window to the front first, whichshow_menu, menu-bar items of a background app, andfocusbeforekeytyping often need. Drags stay onmouse. owneronly, likemouseandkey, and it needs the Accessibility permission. It is not inobserve.- Secure fields.
set_valueworks on password fields, and the value is never read back, logged or returned (post_statereportsmasked: true). Through a switchboard (--switchboard),set_valueon a secure field is refused by default, because the switchboard can write call arguments to its audit log. To allow it, writeallowto~/.config/oab-instance-mcp/switchboard.secure-set-valueand re-run the installer (it passes--switchboard-allow-secure-set-value). A direct/mcpconnection and openab-pty reverse attach are unaffected. ui_snapshotgainsinclude_menu_bar(defaultfalse) so menu items get refs. Its default output is unchanged.
Switchboard operators: upgrade to openab-sb v0.2.2
openab-sb releases before v0.2.2 write tool arguments to audit.jsonl in full, so set_value values (and key text, as before) end up there in plain text. v0.2.2 replaces secret-bearing argument values with a redaction marker (openabdev/openab-sb#16). Upgrade the switchboard before sending anything sensitive through ui_action, and consider rotating an audit file written by an older version. On an older switchboard, set audit_args = false or keep the secure set_value opt-in off.
Linux
Linux is unchanged. The Linux hands node does not serve ui_action or ui_snapshot; AT-SPI versions are planned (#67 stays open for them).
What's Changed
- feat: ui_action, act on a ui_snapshot ref without moving the cursor (#67 phase 2) by @chaodu-agent in #96
- chore: bump to 0.10.0 by @chaodu-agent in #97
Full Changelog: v0.9.0...v0.10.0