{"skill":{"slug":"control-host-browser","displayName":"Control Host Browser","summary":"Control the host machine's Chrome browser to open specific URLs in new tabs. Use when: User explicitly asks to \"open a link\", \"show me this page\", or \"search...","description":"---\nname: control-host-browser\ndescription: >\n  Control the host machine's Chrome browser to open specific URLs in new tabs.\n  Use when: User explicitly asks to \"open a link\", \"show me this page\", or \"search for X in browser\" on the host machine.\n  NOT for: Internal agent browsing tasks or headless scraping.\nversion: 1.0.0\n---\n\n# Host Browser Controller\n\n## 功能定义\n此技能用于控制宿主机（用户物理机）上的 Chrome 浏览器。它通过 Chrome DevTools Protocol (CDP) 创建新标签页并导航至指定 URL，让用户能在本地屏幕上查看网页内容。\n\n## 触发场景\n- 用户说：“在浏览器里打开这个链接”。\n- 用户说：“帮我搜索一下‘AI 发展趋势’”。\n- 用户希望查看某个文档或网页的可视化效果。\n\n## 执行步骤 (SOP)\n1. **参数准备**：\n   - 确认目标 URL。如果是搜索请求，先构造 Google/Bing 搜索链接。\n   - 确认 Profile 名称（默认为 `main`，对应宿主机上的特定用户配置）。\n2. **创建标签页**：\n   - 调用 `control_host_browser.sh` 脚本。\n   - 传入 `profile` 参数（通常为 `main`）。\n   - 脚本会通过 CDP 接口在宿主机 Chrome 中创建一个新 Tab，并返回 `targetId`。\n3. **导航页面**：\n   - 使用返回的 `targetId`，通过 CDP WebSocket 发送 `Page.navigate` 指令。\n   - 传入目标 URL。\n4. **确认状态**：\n   - 等待页面加载事件（`Page.loadEventFired`）。\n   - 向用户反馈：“已在您的浏览器中打开 [标题/URL]”。\n\n## 参数说明\n- **profile**: 浏览器配置文件标识。\n  - `main`: 主配置文件（默认）。\n- **url**: 需要打开的完整 URL（包含 `https://`）。\n\n## 输出格式\n- 成功：返回 \"Tab created with ID: [ID], navigating to [URL]\"。\n- 失败：返回具体的 CDP 错误信息（如 \"Connection refused\", \"Invalid URL\"）。\n\n## 限制说明\n- 仅支持 HTTP/HTTPS 协议。\n- 依赖于宿主机 Chrome 浏览器已开启远程调试端口（默认 18800）。\n- 无法直接操作页面内的 DOM（如点击按钮），仅负责打开页面。\n\nUsage:\n```bash\n./control_host_browser.sh <profile> <url>\n```\nWhere profile is main\n","tags":{"automation":"1.0.0","latest":"1.0.0","productivity":"1.0.0"},"stats":{"comments":0,"downloads":352,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1777748026467,"updatedAt":1778492830283},"latestVersion":{"version":"1.0.0","createdAt":1777748026467,"changelog":"Initial release of control-host-browser skill:\n\n- Enables opening specific URLs in new tabs on the host machine's Chrome browser.\n- Triggered by user requests such as \"open a link\" or \"search in browser.\"\n- Not intended for agent-internal or headless browsing tasks.\n- Requires Chrome remote debugging enabled on the host machine.\n- Operates using a shell script and Chrome DevTools Protocol (CDP).","license":"MIT-0"},"metadata":null,"owner":{"handle":"stevenxie66","userId":"s1721yzvnqvrtsdqjmgkbv7jts84ncgq","displayName":"stevenxie66","image":"https://avatars.githubusercontent.com/u/20614261?v=4"},"moderation":null}