Skip to content

[DOCS] Document cgo-free computer-use build and accessibility-tree tools #581

Closed

Description

@edenreich

Summary

The CLI computer-use layer changed in inference-gateway/cli#1086 and needs docs updates on two fronts.

  1. New accessibility-tree tools (public surface):

    • GetUIElements - lists the pressable UI elements of an accessibility tree (targets: frontmost, dock, menubar). Returns a numbered element list (role, title, center, bounding box) in the same coordinate space as GetLatestFrame, so a center can be passed straight to MouseClick. Read-only; does not move the cursor.
    • PressUIElement - presses an element by its title via the accessibility tree, without moving the mouse cursor. The reliable way to click dock items, buttons, and menu titles.
  2. Fully cgo-free build (changed build/install behavior):

    • The CLI now builds with CGO_ENABLED=0 on macOS, Linux, and Windows; no C toolchain or macOS SDK is required to build from source.
    • macOS builds select robotgo's pure-Go backend with -tags mac; Linux and Windows need no build tags.
    • Application IDs returned by GetFocusedApp and accepted by ActivateApp are now pid:<N> on every platform (previously the bundle ID on macOS).
    • Clipboard is text-only; image clipboard was dropped.
    • On macOS the Accessibility permission must be granted for the AX tools to return elements.

Affected pages (proposed):

  • Computer Use tools reference - add GetUIElements and PressUIElement, and note the macOS Accessibility permission requirement.
  • Build-from-source / installation - state that builds are cgo-free (CGO_ENABLED=0) and that macOS needs -tags mac.
  • Any page documenting GetFocusedApp / ActivateApp - update the application-identifier format to pid:<N>.

Source PR: inference-gateway/cli#1086

Acceptance Criteria

  • GetUIElements and PressUIElement are documented in the computer-use tools reference (targets, return shape, cursor-free behavior).
  • The macOS Accessibility permission requirement for the AX tools is documented.
  • Build-from-source docs state the cgo-free build (CGO_ENABLED=0) and the macOS -tags mac requirement.
  • GetFocusedApp and ActivateApp docs reflect the pid:<N> application-identifier format.
  • The clipboard text-only behavior is noted where clipboard is documented.

Activity

  1. added
    documentation
    on Aug 20, 2026
  2. added theissue type on Aug 20, 2026
  3. moved this to Todo in 2026on Aug 20, 2026
  4. edenreich commented on Aug 24, 2026

    @edenreich
    ContributorAuthor

    @claude Can you work on this? check all the relevant parts in the original repo and its actuality. use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Aug 24, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 4m 55s —— View job • docs/issue-581-20260824-1428 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-581-20260824-1428?quick_pull=1&title=Issue%20%23581%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23581%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #584

    • Gather context (docs pages + upstream cli main)
    • Document the accessibility tools
    • macOS Accessibility permission note
    • cgo-free build
    • pid:<N> application identifiers
    • Clipboard text-only note
    • Lint / format / build (all green)
    • Commit + PR

    Actuality check - the issue is partly superseded

    Checked inference-gateway/cli@main, not just cli#1086. Three of the issue's specifics no longer hold:

    1. GetUIElements / PressUIElement no longer exist as tools. All computer-use tools were collapsed into one action-based Computer tool (accessibility, press, screenshot, cursor, move, click, double_click, triple_click, scroll, type, key) plus GetLatestFrame. GetLatestScreenshot, MouseMove, MouseClick, MouseScroll, KeyboardType, GetFocusedApp and ActivateApp are gone from the codebase. Documented the actual surface instead.
    2. The macOS build tag is purego, not mac - and it is applied on macOS, Linux and Windows alike (Taskfile.yml GOTAGS: purego, release.yml uses -tags purego for all three). Documented CGO_ENABLED=0 go build -tags purego -o infer ./cmd/infer.
    3. pid:<N> now describes the accessibility target, not an ActivateApp argument, since that tool is gone.

    Also fixed drift found along the way: the config block is a separate .infer/computer_use.yaml file with no tools: section (and no max_width/max_height/log_captures/show_overlay; buffer_size defaults to 60), the destructive approval level now splits observations from input actions, and Windows was missing from the display-server table.

    Clipboard text-only is noted in the Computer Use section - the docs had no other clipboard coverage to amend.
    | Branch | PR #584

  6. moved this from Todo to In progress in 2026on Aug 24, 2026
  7. moved this from In progress to QA in 2026on Aug 24, 2026
  8. inference-gateway-releaser commented on Aug 24, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.12 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  9. moved this from QA to Done in 2026on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions