Skip to content

oab-computer 0.10.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:12
· 50 commits to main since this release
bf8ec71

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_id and ref from a recent ui_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 with stale 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, confirm and cancel, plus increment and decrement. 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: true brings the app and window to the front first, which show_menu, menu-bar items of a background app, and focus before key typing often need. Drags stay on mouse.
  • owner only, like mouse and key, and it needs the Accessibility permission. It is not in observe.
  • Secure fields. set_value works on password fields, and the value is never read back, logged or returned (post_state reports masked: true). Through a switchboard (--switchboard), set_value on a secure field is refused by default, because the switchboard can write call arguments to its audit log. To allow it, write allow to ~/.config/oab-instance-mcp/switchboard.secure-set-value and re-run the installer (it passes --switchboard-allow-secure-set-value). A direct /mcp connection and openab-pty reverse attach are unaffected.
  • ui_snapshot gains include_menu_bar (default false) 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

Full Changelog: v0.9.0...v0.10.0