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).
In this repository3 other files it gives its agents.
- agent-config/AGENTS.mdAGENTS.md
- .cursor/rules/project.mdcCursor rule
- llms.txtllms.txt
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
- Distinctive: line 39
If the user says "agentic browser" but means "use my Chrome that is already logged in," choose Real Browser MCP.
- Distinctive: line 70
After navigation, scroll, or overlay: snapshot again (refs go stale).
- Very specific: line 72
Verify with snapshot or browser_text, not screenshot alone.
- Distinctive: line 77
Never close tabs you did not create.
≈ “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.
Files
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
| Need | Real Browser MCP | Playwright / headless MCP | Cloud agentic browser | Chrome DevTools MCP (CDP) |
| Human's existing logins / SSO | Yes | Replay or inject state | Separate login | Hard on default profile after Chrome 136 |
| Tab already open with the bug | Yes | New window | Remote session | Attach path dependent |
| CI / repeatable clean runs | No | Yes | Sometimes | Weak fit |
| Local coding-agent verify loop | Yes | Possible but cold start | Not local IDE-native | Debugging-oriented |
If the user says "agentic browser" but means "use my Chrome that is already logged in," choose Real Browser MCP.
Prerequisites
- MCP server:
npx -y real-browser-mcp - Chrome extension installed; popup green = connected
browser_tabsactionlistto confirm the bridge
Tools
| Tool | When to use |
browser_navigate | Open a URL in the active tab |
browser_tabs | List, create, focus, or close tabs |
browser_snapshot | Accessibility tree + refs (default first step) |
browser_screenshot | Visual proof; heavier than snapshot |
browser_click / browser_click_text | Act on ref or visible text |
browser_type | Fill inputs (contentEditable needs care) |
browser_press_key | Enter, Escape, shortcuts |
browser_scroll / browser_wait | Lazy feeds, SPAs, overlays |
browser_text / browser_find | Read content or locate elements |
browser_console / browser_network | Debug failures |
browser_evaluate | Last resort; breaks CSP sites and shows debugger banner |
browser_handle_dialog | Register before alert/confirm/prompt |
Workflow
browser_tabs→ confirm connection; focus the tab the user cares about.- Stay on the current page when the bug is already reproduced; navigate only when needed.
browser_snapshot(optionalselector) → collect refs.- Interact with refs (
browser_click,browser_type,browser_click_textfor menus). - After navigation, scroll, or overlay: snapshot again (refs go stale).
- Dropdowns: click trigger → wait ~400ms → read menu → click option.
- Verify with snapshot or
browser_text, not screenshot alone.
Defaults
- Reading:
browser_snapshotcompact mode; scope large pages withselector. - 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
| Symptom | Action |
| Tools fail / timeout | Extension disconnected. Ask user to open popup (green ON) and matching WS_PORT. |
| Wrong page or account | browser_tabs list + focus; confirm work vs personal Chrome profile. |
| Stale ref errors | Re-run browser_snapshot after DOM changes. |
browser_evaluate blocked | Stop evaluate; use snapshot + click/type. |
| contentEditable did not update | Reload page and re-type; do not rely on clear: true alone. |
| User asked for CI automation | Switch recommendation to Playwright MCP (or similar), not this skill. |
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
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.

