What this thread does
Do first: add --background next to --extension (config background: true, env PLAYWRIGHT_MCP_BACKGROUND=1); this needs extension 0.5.0 or later.
Short answer
As of November 2026, v0.0.85 stops the extension connection from focusing the browser window when you pass --background, lets you keep tabs in their existing groups with --no-tab-group, and can restrict locators to visible elements.
What to do
| Setting | Flag | Config | Env |
|---|---|---|---|
| Keep tab inactive, window unfocused | --background with --extension | background: true | PLAYWRIGHT_MCP_BACKGROUND=1 |
| Leave tabs out of the Playwright tab group | --no-tab-group with --extension | tabGroup: false | PLAYWRIGHT_MCP_NO_TAB_GROUP=1 |
| Visible-only locators | n/a | browser.contextOptions.locateOnlyVisible: true (off by default) | n/a |
- Both flags require extension 0.5.0 or later. With
PLAYWRIGHT_MCP_EXTENSION_TOKENset, the connect page also opens in the background (Chrome 158.0.8127.2 or later, browser already running). - Chrome throttles timers and animation frames in background tabs.
- The v0.0.84 snapshot filtering for inert and modal content is reverted:
browser_snapshotno longer hides content only because it is inert or outside a modal dialog.
Limits and open questions
- The notes do not say how much background throttling affects test timing.
Not for: Playwright test runner options.
Sources
- Playwright MCP v0.0.85, Playwright maintainers, 2026-11-09: "Pass --background alongside --extension"
Checked
2026-11-24; read the v0.0.85 release page; no command was run.
Started from a post by @Playwright maintainers, packaged by the editor. Original post