跳到正文
Skillpedia
智能体37k · #7570

computer_use

它能做什么

这项技能让 AI 智能体通过界面在桌面应用内工作。适用于没有命令行工具或集成能完成工作的任务。

适用场景

  • ✓当任务需要你在没有集成的桌面应用中逐步点击时。
  • ✓当你需要智能体在报告成功之前,检查屏幕上实际显示的内容时。
  • ✓当专用工具无法完成任务、只能通过应用界面完成的时候。

技能链接

https://github.com/agentscope-ai/QwenPaw/blob/main/plugins/bundle/computer-use/skills/computer_use/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agentscope-ai/QwenPaw/blob/main/plugins/bundle/computer-use/skills/computer_use/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请打开我桌面上的报销应用,并导出本月的报告。”

每周 5 个新技能,1 分钟读完。

工作原理

它会找到已批准的应用及其窗口,观察屏幕,并每次只执行一个小动作。每次操作后,它会检查新的画面,并在确认最终状态后才报告成功。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Computer Use

Use Computer Use only for tasks that require a live desktop interface or visual verification. Prefer a purpose-built integration or command-line tool when it can complete and verify the task.

Use only the native desktop runtime. It operates on one approved application and one observed window at a time; it never accepts a free-form screen target.

Operating Loop

Follow this loop for every task:

  1. Discover the canonical application and the correct window.
  2. Observe the window and identify the requested state from current evidence.
  3. Define the next expected visible or accessible state change.
  4. Choose one action channel and perform the smallest useful action.
  5. Inspect the replacement observation before deciding the next action.
  6. Observe the final state and verify every requested outcome before reporting success.

Treat dispatched: true or an intermediate acknowledgement only as evidence that input was sent, not that the application completed the operation. If the final state is incomplete or uncertain, report that accurately.

Discover the Target

  1. Call list_apps and select the canonical App ID.
  2. Call list_windows, optionally limited by that App ID.
  3. Match the target by title, content, and observed state. When several windows are plausible, observe them read-only until one matches; never choose only because it is first or most recent.
  4. Keep using the matched window_id until an action explicitly hands off to another window.

Use launch_app with a canonical App ID. If the application is not listed, use an explicit absolute executable path on Windows or application-bundle path on macOS. After launch, list its windows again because launch completion does not prove that a usable window already exists.

When the runtime reports a missing system permission, stop and ask the user to grant it. Do not retry until the user confirms the permission was granted.

Read an Observation

observe_window returns a point-in-time window observation with screenshots and accessibility text. Start with:

  • accessibility.focused_element: the control that owns keyboard focus.
  • accessibility.document_text: a capped view of the focused document; never assume it contains the complete document when truncated.
  • accessibility.elements: actionable controls and their current properties.

Each accessibility line begins with an element_id, control type, and name. Use labels, roles, identifiers, actions, and current state together; do not infer behavior from an opaque identifier alone.

Indentation preserves the native accessibility hierarchy. Use parent and container context to distinguish controls with duplicate names.

Each attached image has a screenshots[].id, image-local dimensions, screen origin, kind, and z-index. On Windows, one observation may include the selected window plus related menus, drop-downs, or dialogs. Treat the highest z-index related image as the frontmost visual surface, while keeping the original window_id as the stable target. Attached images and screenshots entries use the same order.

Common markers:

  • [disabled]: do not act on this element.
  • [offscreen]: scroll it into view first.
  • [selected]: the application selected this exact element.
  • [settable]: set_value is supported.
  • [actions=...]: invoke only an explicitly listed action.
  • [resource-backed]: the label represents an application-owned object, not an editable text buffer.

When duplicate names exist, discard disabled candidates, then choose by role, actions, identifier, and surrounding state. Prefer accessibility elements over coordinates. When visual.available is false, continue only with listed elements, semantic actions, or verified keyboard focus; coordinates are not valid for that observation.

Every successful desktop mutation invalidates its input observation. The response normally installs and returns a settled replacement observation. Inspect it before the next action and derive fresh element IDs from it. Post-action replacements do not attach images. On Windows, visual.related_surface_count reports related menus, drop-downs, or dialogs seen during that lightweight refresh. Call observe_window before choosing a visual target or using coordinates.

Interpret result fields conservatively:

  • accessibility_changed: false means no AX-visible transition was observed; it does not rule out a visual-only change.
  • effect: observed verifies the edited bu
常见问题

它会操作我拥有的任何应用吗?

不会。它每次只针对一个已批准的应用和一个被观察的窗口工作。

为什么它要检查每一步?

发出点击并不代表应用已完成任务,因此技能会在屏幕上验证结果。

如果有更简单的工具,还应该用它吗?

不应该。技能建议,如果有专用工具或命令行选项能完成工作,应先使用它们。

详情

作者的原始描述

Use computer_use for live Windows or macOS GUI work that structured tools cannot complete. Discover an approved app and window, act from fresh observations, and verify every requested result.

repo: agentscope-ai/QwenPaw

热度

GitHub 星标
37k
排名
#7570
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能