browser-use
browser-use
通过 @playwright/cli daemon 连接用户真实 Chrome 浏览器(extension 模式),复用已登录的 session。
Tab 跨调用持久化 — daemon 进程常驻,tab、cookies、登录状态在多次调用间存活。
前置条件
- Chrome 安装了 Playwright MCP Bridge 扩展
.env中配置了ALEX_BROWSER_BRIDGE_TOKEN(从扩展弹窗复制)
核心概念
- Daemon 持久会话:首次调用自动启动 daemon(
open --extension),后续所有调用复用同一会话 - Snapshot → ref → 操作:
snapshot获取页面无障碍树,每个元素有ref(如e44),用click/fill/type操作该 ref - 不抢前台:extension 模式连接已有 Chrome,不会弹出新窗口或抢占焦点
- Token 节省:snapshot 输出到文件(
.playwright-cli/目录),不灌入 stdout
调用
More from cklxx/elephant.ai
soul-self-evolution
When personality/collaboration strategy needs updating → evolve SOUL config under immutable-section protection with rollback support.
339desktop-automation
When you need to control macOS desktop apps (Atlas, Chrome, Finder) → automate via AppleScript.
98ppt-deck
When the user needs a presentation → PPT playbook (goal/audience → storyline → layout → accessibility → delivery).
78reminder-scheduler
When the user wants to set reminders → create, query, cancel one-time or recurring reminders with expiry scanning.
70deep-research
When a topic needs thorough investigation from multiple sources → multi-source search + evidence assembly + structured report.
59video-production
When the user wants to create a short video → generate with Seedance, validate and save output files.
53