Install
openclaw skills install desktop-operatorOperate Electron desktop applications on macOS via Puppeteer CDP. Open an app, find a UI element by text, click it, and take a screenshot.
openclaw skills install desktop-operator通过 Puppeteer CDP 连接 Electron 桌面应用,自动完成打开应用、点击指定文本元素、截图的操作。
用于自动化本地 Electron 应用(如各类管理后台、工具软件)。
示例触发语:
| 参数 | 说明 |
|---|---|
--app | 应用名称,即 /Applications/ 下 .app 文件名(不含 .app) |
--target | 要点击的元素文本内容 |
node dist/index.js --app "{appName}" --target "{targetText}"
示例:
node dist/index.js --app "DaveBella" --target "订单中心"
成功后输出 JSON:
{ "screenshot": "/tmp/desktop_operator_skill_xxxxxxxxx.png" }
截图路径即为操作完成后的页面截图,可直接展示给用户。
/Applications/ 目录下