chrome-control-proxy
Installation
SKILL.md
chrome-control-proxy 服务(OpenClaw)
前置条件
- 宿主机已安装 Node ≥ 18,并全局安装服务包:
npm install -g chrome-control-proxy。 - 服务已启动:宿主机执行
ccp start,默认http://127.0.0.1:3333。 - 自动化前通常需 Chrome 已带远程调试:
POST /browser/start(或你手动用--remote-debugging-port=9222启动)。 - 容器内将主机换为
host.docker.internal:3333(Linux Docker 可能需配置extra_hosts)。
推荐调用顺序(自动化任务)
GET /health→ 确认 HTTP 服务可用;browser.running为 false 时先POST /browser/start。GET /playwright/status→ 确认 CDP 可连(失败则检查 Chrome 是否在CHROME_PORT监听)。- 需要页面结构时:
POST /playwright/page-dom,优先传selector与playwrightSnapshotMode: "compact"。 - 只执行动作:
POST /playwright/run;动作前后都要拿快照时优先用POST /playwright/pipeline。
page-dom、pipeline 与 run 在服务端 串行队列,不要假设并行请求能同时操作同一标签页。