SKILL.md--- name: browser-use description: Control a real browser to navigate pages, click, type, fill forms, inspect rendered UI, take screenshots, or record video. Load only when the user asks to open or automate a browser, interact with or test rendered page UI, scrape a site that needs browser execution, or capture a browser screenshot or video. Do not load for backend logs, traces, API or stream events, source-code inspection, or plain HTTP or web research that does not require a browser. --- # Browser Use with CDP Drive the browser through its native Chrome DevTools Protocol over the remote-debugging WebSocket. This works with zero dependencies: launch the browser with `--remote-debugging-port`, then talk JSON over `fetch` and the built-in `WebSocket` global (available in Bun and Node ≥ 22 — no `ws` package). If the project already has Playwright or Puppeteer installed, using it is usually simpler — reach for raw CDP when no automation library is available, when protocol-level control is needed, or when recording a deterministic visual demo. Protocol reference: https://chromedevtools.github.io/devtools-protocol/. The running browser's exact schema is at `http://127.0.0.1:<port>/json/protocol`; tip-of-tree docs can differ from the installed version. ## Visible by default when a display exists When the computer has a display, prefer a visible (headful) browser for any task the user might watch or take over: clicking or typing, forms, sign-in, checkout/payment, CAPTCHAs or bot protection, and user handoff. Most browser tasks exist because plain HTTP is not enough; a headless browser is more likely to trigger bot protection and gives the user no way to observe or step in. Visible does not mean pixel-driven: keep operating the page over CDP, and the user sees every action in the window. Use headless mode only for work the user explicitly wants in the background and that cannot require interaction or handoff, such as read-only scraping, CI, or screenshot/PDF generation, or when no display exists. A headless page does not satisfy a request to open or reopen a site in a browser the user can see. When the user asks to review, watch, or take over, leave that browser window open after the task. Do not kill or close it before replying. ## Workflow 1. Find a Chromium-based browser (below). If none exists, see "No Chrome installed". 2. Launch with a dedicated profile and remote debugging. Never attach to the user's normal profile unless explicitly asked. 3. Discover targets via `/json/list`; pick the `"page"` target by URL or title. 4. Connect to its `webSocketDebuggerUrl` and enable only the domains you need (usually `Page`, `Runtime`, `DOM`, `Input`; add `Network`, `Log` when debugging). 5. Inspect before acting: find elements by accessible name, label, text, role, stable ID, or placeholder — not generated classes or child indexes. 6. Act through `Input.*` for u