跳到正文
Skillpedia
通用编程394k · #75

peekaboo

它能做什么

它指导 AI 智能体使用 Peekaboo 工具捕捉并控制 macOS 应用,从查看屏幕到操作某一个特定控件。它适合希望智能体替自己操作 Mac 应用的人。

适用场景

  • ✓你希望智能体替你在 Mac 应用中点击或输入内容的时候。
  • ✓你需要一张 Mac 应用窗口的截图,以检查其状态的时候。
  • ✓Mac 上的自动化运行之后,需要验证结果的时候。

技能链接

https://github.com/openclaw/openclaw/blob/main/skills/peekaboo/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请在我的 Mac 上打开备忘录应用,找到标题为 Groceries 的笔记,并告诉我上面写了什么。”

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

工作原理

技能检查已安装的 Peekaboo 版本,然后查看目标应用,操作预定的控件,并验证结果。它在执行操作的应用或桥接程序所拥有的 macOS 权限下工作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Peekaboo

Use Peekaboo to inspect macOS UI, act on the intended target, and verify the result. The examples below use v4 syntax. Check peekaboo --version and the installed command's --help; for older versions, follow that version's help.

OpenClaw Bridge

The OpenClaw macOS app hosts Peekaboo Bridge when Computer Control is enabled, its provider is Peekaboo, and Peekaboo Bridge is enabled. Keep the existing OpenClaw socket selection when running through that host:

export PEEKABOO_BRIDGE_SOCKET="${PEEKABOO_BRIDGE_SOCKET:-$HOME/Library/Application Support/OpenClaw/bridge.sock}"
peekaboo bridge status --json

Confirm that the selected host and socket are the intended ones. Preserve an explicit PEEKABOO_BRIDGE_SOCKET or --bridge-socket selection. If the required host is unavailable, report that outcome; do not clear the selection or switch Computer Control providers to make a command succeed.

Permissions belong to the process or Bridge host performing the operation. Do not pass --no-remote unless the caller has the required permissions.

Find the installed command

Use leaf help for flags and targeting requirements instead of copying a flag between commands. Use root help to discover the available commands:

peekaboo --help
peekaboo app list --help
peekaboo see --help
peekaboo press --help
peekaboo drag --help

V4 removed these old command roots:

Old command V4 command
list apps app list
image see --no-elements for pixels without element detection
hotkey press with chords such as cmd+shift+t
swipe drag --from … --to …

For other operations, including clicking, typing, scrolling, and managing windows or menus, use peekaboo <command> --help. Put command options after the leaf command; --json requests structured output.

Inspect, act, verify

Start with application inventory and a fresh view of the target:

peekaboo app list --json
peekaboo see --app Safari --window-title "Example" --annotate \
  --path /tmp/peekaboo-example.png --json

Read the returned elements before acting. Keep actions tied to the intended app, window, and fresh snapshot; do not reuse example element IDs. After an action, inspect the UI again and check the requested result. Refresh the observation when the window changes or a target becomes stale.

For a screenshot without element detection:

peekaboo see --mode screen --screen-index 0 --no-elements --retina \
  --path /tmp/peekaboo-screen.png --json

Raw keyboard chords require explicit foreground interaction or a fresh exact-window receipt accepted by press. Dragging always moves the shared cursor and requires --foreground. When foreground interaction is authorized:

peekaboo press cmd+shift+t --app Safari --foreground --json
peekaboo drag --from 100,500 --to 100,200 --duration 800ms --foreground --json

Use the actual target and coordinates from the current observation. Prefer explicit duration units such as 800ms; consult each command's help for its options and prerequisites.

Troubleshooting

  • For a removed-command error, use the replacement named by the installed CLI.
  • For host or permission failures, inspect peekaboo bridge status --json and peekaboo permissions status --json for the selected host.
  • For targeting failures, read the leaf help and obtain fresh UI state with see.
  • On macOS 15+, the private window picker prompt is separate from the base Screen Recording grant and can appear even when Bridge permissions are correct.
常见问题

它需要特殊权限吗?

需要。执行工作的应用或桥接程序需要 macOS 中控制屏幕和其他应用访问的权限。

如果针对了错误的应用怎么办?

技能会先确认所选的主机和目标,并且不会为了强行得到结果而切换服务提供方。

它能在 Windows 上使用吗?

不能。Peekaboo 只适用于 macOS。

详情

作者的原始描述

Capture and automate macOS UI with the Peekaboo CLI.

repo: openclaw/openclaw

热度

GitHub 星标
394k
排名
#75
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能