Agent 浏览器规划
- 作者仓库星标 3,082
- 作者仓库 grok-cli
agent-desktop
Use this skill when the task involves the host macOS desktop rather than repository files, shell output, or browser-only verification.
This project uses agent-desktop on the host. Prefer the built-in Computer sub-agent for these tasks instead of trying to drive the desktop with plain shell commands.
When to use it
- The user wants to inspect or interact with a native macOS application.
- The task needs app launch, window focus, accessibility snapshots, semantic element refs, clicks, typing, keypresses, or scrolling.
- A browser-only workflow is not enough, or the target is not a web page.
Requirements
agent-desktopmust be installed and its native binary available.- On macOS, the terminal app running
grokneeds Accessibility permission. - Refs from
computer_snapshotare only valid until the next snapshot.
Preferred flow
- Delegate to
taskwithagent: "computer"unless the current agent already has thecomputer_*tools and the task is tiny. - Use
computer_launch,computer_list_windows, orcomputer_focus_windowto get the target app/window ready. - Start with
computer_snapshot. - Pick one ref-based action.
- After any UI transition, snapshot again before reusing refs.
Tool guidance
computer_snapshot: primary observation tool; preferinteractive_only.computer_click: userefvalues from the latest snapshot whenever possible.computer_type: requires a target ref and is preferred over coordinate typing.computer_press: use for shortcuts and special keys such asEnter,Tab,cmd+space, orcmd+k.computer_scroll: pass an element ref, not raw coordinates.computer_get: read text, value, bounds, role, or states from a ref.computer_screenshot: use for visual confirmation or when the accessibility tree is not enough.
Reliability rules
- Use a snapshot -> act -> snapshot loop.
- Prefer refs over coordinates.
- Refs go stale after the next snapshot; do not reuse them blindly.
- Keep actions reversible and low risk unless the user explicitly asked for something destructive.
- If the accessibility tree is poor or ambiguous, use
computer_screenshotfor confirmation and explain the limitation.
Blockers
Stop and report clearly if:
- Accessibility permission is missing.
agent-desktopis unavailable or its native binary is missing.- The target app/window cannot be found.
- Refs are stale or ambiguous after a UI transition.
- The requested action could be destructive and the user did not explicitly ask for it.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @superagent-ai · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 The user wants to inspect or interact with a native macOS application. The task needs app launch, window focus, accessibility snapshots, semantic element refs, clicks, typing, keypresses, or scrolling. A browser-only workflow is not enough, or the target is…
agent-desktop must be installed and its native binary available. On macOS, the terminal app running grok needs Accessibility permission. Refs from computersnapshot are only valid until the next snapshot.
Delegate to task with agent: "computer" unless the current agent already has the computer tools and the task is tiny. Use computerlaunch, computerlistwindows, or computerfocuswindow to get the target app/window ready. Start with computersnapshot.
computersnapshot: primary observation tool; prefer interactiveonly. computerclick: use ref values from the latest snapshot whenever possible. computertype: requires a target ref and is preferred over coordinate typing.
Use a snapshot -> act -> snapshot loop. Prefer refs over coordinates. Refs go stale after the next snapshot; do not reuse them blindly.
Stop and report clearly if: Accessibility permission is missing. agent-desktop is unavailable or its native binary is missing.
# agent-desktop
Use this skill when the task involves the host macOS desktop rather than repository files, shell output, or browser-only verification.
This project uses `agent-desktop` on the host. Prefer the built-in `Computer` sub-agent for these tasks instead of trying to drive the desktop with plain shell commands.
## When to use it
- The user wants to inspect or interact with a native macOS application.
- The task needs app launch, window focus, accessibility snapshots, semantic element refs, clicks, typing, keypresses, or scrolling.
- A browser-only workflow is not enough, or the target is not a web page.
## Requirements
- `agent-desktop` must be installed and its native binary available.
- On macOS, the terminal app running `grok` needs Accessibility permission.
- Refs from `computer_snapshot` are only valid until the next snapshot.
## Preferred flow
1. Delegate to `task` with `agent: "computer"` unless the current agent already has the `computer_*` tools and the task is tiny.
2. Use `computer_launch`, `computer_list_windows`, or `computer_focus_window` to get the target app/window ready.
3. Start with `computer_snapshot`.
4. Pick one ref-based action.
5. After any UI transition, snapshot again before reusing refs.
## Tool guidance
- `computer_snapshot`: primary observation tool; prefer `interactive_only`.
- `computer_click`: use `ref` values from the latest snapshot whenever possible.
- `computer_type`: requires a target ref and is preferred over coordinate typing.
- `computer_press`: use for shortcuts and special keys such as `Enter`, `Tab`, `cmd+space`, or `cmd+k`.
- `computer_scroll`: pass an element ref, not raw coordinates.
- `computer_get`: read text, value, bounds, role, or states from a ref.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to use it → Requirements → Preferred flow → Tool guidance → Reliability rules → Blockers
要点 -> Use this skill when the task involves the host macOS desktop rather than repository files, shell output, or browser-only verification. · This project uses agent-desktop on the host. · - The user wants to inspect or interact with a native macOS application. · - agent-desktop must be installed and its native binary available. · 1. Delegate to task with agent: "computer" unless the current agent already has the computer tools and the task is tiny. · - computersnapshot: primary observation tool; prefer interactiveonly. · - Use a snapshot -> act -> snapshot loop. · - Accessibility permission is missing.
文件/命令 -> agent-desktop · Computer · grok · computersnapshot · task · agent: "computer" · computer · computerlaunch
内容 SHA-256 -> 7d473211e896
原文结构
适用与边界
原文中的明确线索
agent-desktop、Computer、grok、computersnapshot、task、agent: "computer"、computer、computerlaunch