molecule-ai-plugin-browser-.../rules/cdp-connection.md
Hongming Wang e554e0cace
Some checks failed
CI / validate (push) Failing after 0s
import from local vendored copy (2026-05-06)
2026-05-06 13:53:19 -07:00

550 B

Browser Automation Rules

  • Chrome CDP is available at host.docker.internal:9223 (proxy to host Chrome on port 9222)
  • Always use browserWSEndpoint with URL rewrite (localhost:9222host.docker.internal:9223)
  • Never use browserURL — it resolves to an unreachable localhost address
  • Never call browser.close() — use browser.disconnect() to release without killing Chrome
  • Set NODE_PATH=/usr/lib/node_modules if require('puppeteer-core') fails
  • The Chrome profile is shared — all agents see the same logged-in sessions