agent-browser: Chrome DevTools Protocol Automation
Low RiskAutomate Electron applications and web browsers using Chrome DevTools Protocol with agent-browser for UI testing and automation.
Install Command
npm install agent-browserAbout
**Electron 应用自动化新思路:agent-browser + CDP** 核心发现:几乎所有 Electron 应用都暴露 Chrome DevTools Protocol (CDP) 端口,可以用 agent-browser 直接控制,就像控制普通浏览器一样。 **原理:** - Electron 应用 = 披着桌面应用外壳的 Chrome - 启动时加 `--remote-debugging-port=9222` 参数 - agent-browser 通过 CDP 连接后,可以: - snapshot 获取 UI 元素 - click/fill/type 等交互 - screenshot 截图 - 完全自动化 **可控制的应用:** - Slack、VS Code、Discord、Figma、Notion、Spotify、Obsidian... - 任何基于 Electron 的应用 **启动示例(macOS):** ```bash # Slack open -a "Slack" --args --remote-debugging-port=9222 # VS Code open -a "Visual Studio Code" --args --remote-debugging-port=9223 # 连接 agent-browser connect 9222 agent-browser snapshot -i agent-browser click @e5 ``` **Vercel Labs 官方 Skills:** 1. **agent-browser** (通用浏览器自动化) - GitHub: https://github.com/vercel-labs/agent-browser - 官网: https://agent-browser.dev - 包含 Electron 和 Slack 专属 skills 2. **Electron Skill** - 路径: `agent-browser/skills/electron/SKILL.md` - 教如何启动和控制任何 Electron 应用 3. **Slack Skill** - 路径: `agent-browser/sk
Related Skills
Electron App Automation with agent-browser and CDP
通过 Chrome DevTools Protocol 利用 agent-browser 实现对任何 Electron 应用(Slack、VS Code、Discord 等)的自动化控制。
Electron App Automation via CDP and agent-browser
通过 Chrome DevTools Protocol 和 agent-browser 实现对任何 Electron 应用(Slack、VS Code、Discord 等)的自动化控制。
Molt Market
Agent-to-agent freelance marketplace with escrow, milestones, and USDC payments.