跳到正文
cccskills
免费在 GitHub 公开

host-computer-use-windows

Guide remote Windows app control using UI Automation, which identifies controls by names and roles. Covers text entry, buttons, window management, screenshot checks, and handling desktop session problems when the connected backend supports these features.

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

原文查看原文说明

Backend-specific Windows guidance for `computer_use_remote`. Load when a tool result reports backend_family/backend_id `windows` or Windows UI Automation features. Covers UIA structural targeting, Windows session caveats, and screenshot verification.

集成工具Docker
查看安装方法

适用场景

  • Select and activate a Windows app button by name
  • Enter text into a specific app field
  • Minimize, restore, or maximize a window
  • Verify results and identify desktop session problems

包含的文件(1)

  • SKILL.md5.8 KB

SKILL.md(原文)

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

Host Computer Use - Windows

Use this after host-computer-use when the connected A0 CLI reports the Windows computer-use backend.

Do not use this skill for Linux, macOS, Xpra, Docker, or browser-only tasks. If the backend is not Windows or does not advertise UI Automation support, skip UIA actions and follow the generic host computer-use rules.

Windows UIA Targeting

Windows backends can advertise structural UI Automation features:

  • uia-tree-snapshot
  • uia-structural-targeting
  • uia-element-action
  • uia-window-management
  • native-window-list
  • window-state
  • element-index-targeting
  • background-dispatch
  • foreground-dispatch-fallback

When these features are present, prefer background structural targeting over pixel clicks for named controls such as buttons, menu items, text fields, dialogs, toolbar items, browser address bars, composer fields, and list rows.

Preferred loop:

  1. Use list_windows to find the target native window.
  2. Use get_window_state with the target pid and/or window_id.
  3. Use element_action with the returned element_index and dispatch: "background".
  4. If the backend reports background_unavailable, switch to dispatch: "auto" or dispatch: "foreground" only when foreground control is acceptable.

Example:

{
  "tool_name": "computer_use_remote",
  "tool_args": {
    "action": "element_action",
    "window_id": "uia-hwnd:123456",
    "element_index": 7,
    "operation": "invoke",
    "dispatch": "background"
  }
}

Use uia_snapshot to inspect the bounded Windows UI Automation tree when the newer window-state loop is not available:

{
  "tool_name": "computer_use_remote",
  "tool_args": {
    "action": "uia_snapshot",
    "max_depth": 4,
    "max_nodes": 200
  }
}

The snapshot returns element paths, roles, names/titles, automation IDs, class names, optional Terminator-style selectors, frames, enabled/focused state, actions, and child nodes. Use it to choose an element, not as final visual proof.

Use uia_action for a structural action:

{
  "tool_name": "computer_use_remote",
  "tool_args": {
    "action": "uia_action",
    "target": {
      "role": "Button",
      "title": "OK"
    },
    "operation": "invoke"
  }
}

Supported operations are:

  • invoke: activate a button, menu item, checkbox, or similar control
  • focus_window: restore and bring the owning top-level window to the foreground
  • minimize, restore, maximize: change the owning top-level window state without clicking titlebar buttons
  • focus: focus a text field or focusable element after activating its window
  • set_value: set text/value; pass value or text
  • click: click the element through the Windows UIA wrapper only when the snapshot says click is the available action and no structural operation fits
  • close: close the owning top-level window only when the user explicitly asked to close that app/window

Targeting options:

  • Prefer a semantic target when the control has a stable role plus title/name, automation ID, class name, handle, process ID, framework ID, or selector.
  • Use a path returned by the latest uia_snapshot only while the UI is unchanged.
  • You may pass a selector or target.selector from the snapshot, such as role:Button && name:OK.
  • If an action reports ambiguity, take a fresh snapshot and narrow the target with role plus title/name/automation ID/class name.
  • If an action reports a missing target, take a fresh snapshot before trying coordinates.

Action selection:

  • Prefer the actions listed on the target node. If a node offers invoke, use invoke, not click.
  • Prefer element_action over uia_action when the backend advertises element-index-targeting; it preserves the background-first dispatch contract.
  • For window focus, hiding, restoring, or maximizing, use focus_window, minimize, restore, or maximize; do not click titlebar buttons.
  • For typing into an app, first structurally focus the app/window if needed, then set_value on the target field. A global type result only proves keys were sent, not that they landed in the intended control.
  • After a window operation, navigation, menu open/close, dialog transition, or other layout change, take a fresh uia_snapshot before reusing a path.
  • Use pixel click only after structural UIA, keyboard, browser, and app-native options do not fit, and only from a fresh screenshot with an unambiguous target.

UIA actions are attempts, not proof. They attach a fresh screenshot after state-changing actions; inspect that image before saying the requested outcome happened.

Windows Session Caveats

Windows desktop capture and UI Automation depend on the interactive desktop session where A0 CLI is running. Remote Desktop, VM consoles, UAC prompts, elevated apps, locked screens, minimized/disconnected RDP sessions, and services can prevent capture or UIA access.

If computer_use_remote returns COMPUTER_USE_REARM_REQUIRED, COMPUTER_USE_APPROVAL_REQUIRED, COMPUTER_USE_CAPTURE_UNAVAILABLE, COMPUTER_USE_UIA_UNAVAILABLE, or status=rearm required, stop immediately and ask the user to re-arm or fix the Windows desktop session. Do not bypass a permission/session failure with server screenshots, Docker commands, linux-desktop, or browser fallbacks.

Geometry

Windows captures can use a virtual desktop that includes multiple monitors and negative origins. Use the capture/session origin_x, origin_y, width, and height as the coordinate space, and use normalized [0,1] coordinates only relative to that virtual screen.

评价

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

评论

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

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

提交后会立即公开。请勿填写邮箱、电话等个人信息。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 的全部技能

报告此技能的问题