SnapshotJuly 2026a point-in-time write-up, left as written

Browser control

Part of agentic work is giving Claude a browser: to run UI tests, automate web flows, verify a deploy, or handle one-off tasks that don’t have an API.

There are two distinct approaches, with different strengths. Most projects end up using both.

Playwright: scripted, headless, deterministic

Playwright is Microsoft’s browser-automation library. It drives Chromium, Firefox, and WebKit via a clean API (Node, Python, Java, .NET). Headless by default, with a headed mode you can watch.

Ways Claude works with Playwright:

Best when:

Claude-in-Chrome: real browser, live session

The Claude Chrome extension gives Claude your actual Chrome browser: your cookies, your logins, your extensions, your tabs. Claude sees what you see and clicks what you’d click. Technically it’s an MCP server exposed by the extension.

The tool surface includes navigate, computer, read_page, form_input, javascript_tool, read_console_messages, gif_creator, and related primitives.

Ways Claude-in-Chrome is useful:

Best when:

Which to reach for

What this chapter will cover

Resources to weave in