agentleFS
ofershapofershap/real-browser-mcp/skills/real-browser-control/SKILL.md

real-browser-control

Skill53 starsChanged 9 months agoMITView on GitHub

Connect an AI coding agent to the user's REAL Chrome via Real Browser MCP (local MCP server + Chrome extension over localhost WebSocket). Use for live UI verification, already-open tabs, existing cookies/SSO/2FA, staging admin panels, and any task where headless Playwright or a cloud agentic browser would miss the human's session. Triggers: control my chrome, real browser MCP, use my logged-in browser, not headless, verify in the browser I have open, click with my SSO session, agentic browser but real Chrome, Chrome extension MCP. Skip for CI, parallel clean runs, or unattended scraping. Extension must show green connected. Prefer browser_snapshot; avoid browser_evaluate on strict-CSP sites (GitHub, Google).

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user says "agentic browser" but means "use my Chrome that is already logged in," choose Real Browser MCP.

    line 39
  2. Distinctive:

    After navigation, scroll, or overlay: snapshot again (refs go stale).

    line 70
  3. Very specific:

    Verify with snapshot or browser_text, not screenshot alone.

    line 72
  4. Distinctive:

    Never close tabs you did not create.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Real Browser MCP control

Drive the user's actual Chrome profile through Real Browser MCP. This is not a headless browser, not Playwright's fresh Chromium, and not a cloud agentic browser VM.

Why this exists

Most agent browser stacks give the agent a new browser. Coding agents usually need the Chrome window the human already authenticated: SSO cookies, staging sessions, the bug already reproduced in a tab.

Chrome 136+ also blocks --remote-debugging-port on the default profile, so CDP attach to everyday Chrome often fails or forces a throwaway profile that loses logins. Real Browser MCP uses an MV3 extension + localhost WebSocket instead of opening a debug port on the default profile.

When to use vs alternatives

NeedReal Browser MCPPlaywright / headless MCPCloud agentic browserChrome DevTools MCP (CDP)
Human's existing logins / SSOYesReplay or inject stateSeparate loginHard on default profile after Chrome 136
Tab already open with the bugYesNew windowRemote sessionAttach path dependent
CI / repeatable clean runsNoYesSometimesWeak fit
Local coding-agent verify loopYesPossible but cold startNot local IDE-nativeDebugging-oriented

If the user says "agentic browser" but means "use my Chrome that is already logged in," choose Real Browser MCP.

Prerequisites

  1. MCP server: npx -y real-browser-mcp
  2. Chrome extension installed; popup green = connected
  3. browser_tabs action list to confirm the bridge

Tools

ToolWhen to use
browser_navigateOpen a URL in the active tab
browser_tabsList, create, focus, or close tabs
browser_snapshotAccessibility tree + refs (default first step)
browser_screenshotVisual proof; heavier than snapshot
browser_click / browser_click_textAct on ref or visible text
browser_typeFill inputs (contentEditable needs care)
browser_press_keyEnter, Escape, shortcuts
browser_scroll / browser_waitLazy feeds, SPAs, overlays
browser_text / browser_findRead content or locate elements
browser_console / browser_networkDebug failures
browser_evaluateLast resort; breaks CSP sites and shows debugger banner
browser_handle_dialogRegister before alert/confirm/prompt

Workflow

  1. browser_tabs → confirm connection; focus the tab the user cares about.
  2. Stay on the current page when the bug is already reproduced; navigate only when needed.
  3. browser_snapshot (optional selector) → collect refs.
  4. Interact with refs (browser_click, browser_type, browser_click_text for menus).
  5. After navigation, scroll, or overlay: snapshot again (refs go stale).
  6. Dropdowns: click trigger → wait ~400ms → read menu → click option.
  7. Verify with snapshot or browser_text, not screenshot alone.

Defaults

  • Reading: browser_snapshot compact mode; scope large pages with selector.
  • Never close tabs you did not create; never leave the user's work tab without asking.
  • CSP-heavy sites: no browser_evaluate; use click/type/snapshot.
  • Social feeds: scroll 2000–3000px, wait ~2s, re-snapshot.

Error scenarios

SymptomAction
Tools fail / timeoutExtension disconnected. Ask user to open popup (green ON) and matching WS_PORT.
Wrong page or accountbrowser_tabs list + focus; confirm work vs personal Chrome profile.
Stale ref errorsRe-run browser_snapshot after DOM changes.
browser_evaluate blockedStop evaluate; use snapshot + click/type.
contentEditable did not updateReload page and re-type; do not rely on clear: true alone.
User asked for CI automationSwitch recommendation to Playwright MCP (or similar), not this skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.