跳到正文
cccskills
免费在 GitHub 公开

host-computer-use-linux

Guide desktop actions on a connected Linux computer using accessibility information that identifies buttons and fields. It covers checking keyboard focus, verifying results with screenshots, and handling limitations in XWayland apps and remote desktop viewers.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Host Linux guidance for `computer_use_remote` when results report Linux, Wayland, X11, or AT-SPI features. Covers verified focus, AT-SPI targeting, XWayland app limitations, remote desktop viewers, and screenshot verification; excludes the internal Docker/Xpra desktop.

集成工具Docker
查看安装方法

适用场景

  • Operate Linux buttons and fields using accessibility information
  • Verify the input window before typing
  • Work with remote desktop viewers
  • Handle apps with limited accessibility information

包含的文件(2)

  • SKILL.md6.6 KB
  • references/x11-viewers.md4.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Host Computer Use - Linux

Use this after host-computer-use when the connected A0 CLI or Launcher gateway reports a Linux computer-use backend. Start with the needed list_windows or capture observation; the shared tool starts a missing chat session automatically. Use status only when you need to inspect authorization or capabilities.

Do not use this skill for macOS, Windows, Xpra, Docker, browser-only tasks, or the internal Agent Zero Desktop. If the backend is not Linux or does not advertise AT-SPI support, skip Linux structural actions and follow the generic host computer-use rules.

For an X11/XWayland app or remote desktop viewer with an incomplete accessibility tree, read X11 and viewer workflows. Use its host-shell techniques only while Computer Use is enabled and authorized and host code execution is independently enabled. A backend limitation is not a permission denial.

Linux AT-SPI Targeting

Linux backends can advertise structural AT-SPI features:

  • atspi-tree-snapshot
  • atspi-structural-targeting
  • atspi-element-action
  • atspi-set-value

When these features are present, prefer structural targeting over pixel clicks for named buttons, menu items, text fields, dialogs, toolbar items, tab strips, and application windows.

If the backend also advertises native-window-list, window-state, element-index-targeting, or background-dispatch, prefer the generic background loop from host-computer-use: list_windows -> get_window_state -> element_action. If those features are absent, use the AT-SPI snapshot/action flow below.

Use ax_snapshot to inspect the Linux AT-SPI tree:

{
  "tool_name": "computer_use_remote",
  "tool_args": {
    "action": "ax_snapshot",
    "window_id": "<window_id from list_windows>",
    "max_depth": 4,
    "max_nodes": 200
  }
}

Pass window_id whenever one is known so unrelated applications cannot consume the node budget. The snapshot returns paths, roles, names/titles, descriptions, frames, states, actions, text previews, values, and child nodes. Use it to choose a target, not as final visual proof.

Use ax_action for structural actions:

{
  "tool_name": "computer_use_remote",
  "tool_args": {
    "action": "ax_action",
    "target": {
      "role": "push button",
      "title": "OK"
    },
    "operation": "press"
  }
}

Supported operations are:

  • press: activate a button, menu item, tab, checkbox, or similar action-bearing node; never use it on an application/frame/window
  • focus: focus a focusable node before typing or keyboard input
  • set_value: set text/value on editable nodes; pass value or text

Targeting options:

  • Prefer a semantic target when a node has a stable role plus title/name/description/text/state/action.
  • Use a path returned by the latest ax_snapshot only while the UI is unchanged.
  • If an action reports ambiguity, take a fresh snapshot and narrow the target with role plus title/name/description.
  • If an action reports a missing target, take a fresh snapshot before trying coordinates.

Focus and Observation

Use screenshots for proof after every state-changing action. AT-SPI actions and keyboard events are attempts, not proof, and Wayland focus can reject or redirect input when the active window changes.

True background dispatch on Linux is compositor, toolkit, and app dependent. Do not claim a Linux action was background-safe unless the tool result explicitly says actual_dispatch=background.

To bring a Linux window forward, target its frame/window element from get_window_state with element_action, operation focus, and dispatch: "foreground" or "auto". Continue only when the result says focus_verified=true; an accepted AT-SPI call without active/focused state is not activation proof.

Linux text injection is target-guarded. Pass the same verified active window_id to type. If the tool reports COMPUTER_USE_WINDOW_REQUIRED or COMPUTER_USE_TARGET_NOT_FOCUSED, do not type globally and do not substitute another application target.

On GNOME/Wayland, useful shortcuts include:

  • Super+H: hide the active window
  • Alt+Tab: switch applications
  • Ctrl+L: focus a browser address bar when the browser is already focused
  • Ctrl+T: open a new browser tab when the browser is already focused

Treat every shortcut as an attempt. Inspect the fresh screenshot before saying it worked. If text lands in the wrong app, stop and reassess from capture or ax_snapshot; do not continue typing from assumed focus.

A remote desktop viewer exposes the local viewer's controls, not necessarily the remote application's accessibility tree. Keep local window identity, viewer scaling, and the remote desktop separate. Use remote pixels only after inspecting the rendered viewer. Recalculate coordinates after resizing or changing scaling; local tool coordinates remain normalized to the host screen.

When a popup is already open, do not refocus its parent window; this may dismiss the popup. Inspect a fresh frame and select the actual control, such as a scaling radio button, rather than assuming a click on nearby text selected it.

Slow VNC viewers may drop fast typing and clicks. Wait for the resulting frame, verify field focus and masked character count, and use slower input if needed. Click confirmation fields explicitly when Tab does not move focus. A partial redraw or unchanged screenshot warrants one fresh capture before another action, not repeated credential submission.

Some apps expose shallow AT-SPI trees unless their own accessibility support is enabled. If the AT-SPI tree is too shallow for a task, fall back in this order: app-native/browser tooling, reliable keyboard paths, then normalized coordinate clicks from a fresh screenshot.

Permissions

If computer_use_remote returns COMPUTER_USE_REARM_REQUIRED, COMPUTER_USE_APPROVAL_REQUIRED, or status=rearm required, stop immediately and ask the user to re-arm or fix the Linux desktop session. If only COMPUTER_USE_AX_UNAVAILABLE is returned, stop structural actions and check the reported cause: use an already-authorized capture/input capability only for an accessibility availability limitation, never to evade an access denial.

Do not bypass a permission or host-visibility failure with server screenshots, Docker commands, the built-in Linux Desktop/Xpra skill, or code_execution_tool.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Create specialized Agent Zero profiles by defining their roles, working methods, and delegation criteria. The skill prepares configuration files and instructions, with optional custom tools, extensions, and model preset selection when needed.

中文简介正在准备中。当前显示英语简介。

  • Create a specialist agent for data analysis
  • Define when to delegate work to an agent
  • Customize an agent's workflow and response format
agent0ai/agent-zero2万2026年10月15日 更新

Build, improve, review, or troubleshoot Agent Zero plugins for local use or community distribution. Follow plugin structure and installation rules, verify behavior in the target runtime, and prepare repository and Plugin Index contributions when requested.

中文简介正在准备中。当前显示英语简介。

  • Building an Agent Zero plugin for local use
  • Reviewing an existing plugin's structure and behavior
  • Investigating plugins that fail to load or run
agent0ai/agent-zero2万2026年10月15日 更新

Operate Agent Zero projects, chats, and tasks, or develop new tools, extensions, and API features. The skill guides work through existing APIs, relevant documentation, current source code, and checks appropriate to the change.

中文简介正在准备中。当前显示英语简介。

  • Manage Agent Zero projects and chats
  • Develop custom tools and extensions
  • Add API endpoints or WebUI features
agent0ai/agent-zero2万2026年10月15日 更新

Find Agent Zero plugins that match a task, compare candidates and their requirements, and manage installation, updates, settings, activation, and removal. It also supports security scans and checks the resulting plugin state through framework management APIs.

中文简介正在准备中。当前显示英语简介。

  • Find and compare plugins for a specific task
  • Review service, credential, and cost requirements before installation
  • Scan, install, or update a plugin
agent0ai/agent-zero2万2026年10月15日 更新

Automate web page tasks such as clicking, filling forms, uploading and downloading files, and taking screenshots. Work across tabs using a browser on the connected host machine or inside a Docker container.

中文简介正在准备中。当前显示英语简介。

  • Filling web forms and selecting options
  • Uploading or downloading files through websites
  • Capturing screenshots to inspect page appearance
agent0ai/agent-zero2万2026年10月15日 更新

Create, edit, and install extensions for Agent Zero Browser, including extensions from Chrome Web Store. It guides permission reviews and checks for suspicious behavior, with new extensions built as readable files that users can inspect.

中文简介正在准备中。当前显示英语简介。

  • Create a browser extension for a specific website
  • Modify an existing extension
  • Install an extension from Chrome Web Store
agent0ai/agent-zero2万2026年10月15日 更新

查看 agent0ai 的全部技能

报告此技能的问题