🌐 Browser control from this VM

How a Claude Code session running on the ustyle-dev VM can drive a Chrome browser — read this if you (Claude) have been asked to use the browser, or pointed here by the user.

What this is. This VM's Claude Code can control Google Chrome running on the user's Mac (their real browser, with their logins), via the playwright MCP server. The browser is on the Mac; the user watches it live there. The VM only runs the lightweight Playwright driver, connected over a reverse SSH tunnel to the Mac's Chrome at localhost:9222.

1. First, check the browser is connected

The Mac must be running its claude-browser launcher (debug Chrome + tunnel). Verify from this VM:

curl -s http://localhost:9222/json/version

2. Use it

The mcp__playwright__* tools are available (they were added at user scope, so any fresh VM Claude session has them — if you don't see them, start a new session). Drive the browser with them, e.g.:

Everything you do appears live in the user's Mac Chrome window. It uses their existing logins (e.g. Reddit) from the persistent debug profile.

3. Notes & troubleshooting

Setup reference: Playwright MCP on the VM was added with claude mcp add playwright -s user -- npx @playwright/mcp@latest --cdp-endpoint http://localhost:9222. Mac launcher: ~/bin/claude-browser.