Highlights
- Search a large snapshot instead of capturing the whole thing — the new
findcommand searches the page snapshot for text or a regexp and returns just the matching nodes with surrounding context (likegrep -C), keeping big pages out of the model context. (microsoft/playwright#41605, microsoft/playwright#41654) - Mobile emulation —
open --mobileemulates a generic mobile device (Pixel for Chromium, iPhone for WebKit) and--device="iPhone 15"targets a specific one; mobile pages are usually lighter, so snapshots are smaller and cheaper. (microsoft/playwright#41657) - Leaner snapshots — AI snapshots are distilled to be less verbose, cutting token cost on every command that returns page state. (microsoft/playwright#41604)
- Local invocation via
npx playwright cli— the CLI is now exposed asplaywright cli(andplaywright mcp), so a locally installed Playwright can drive it without a separate global install. (microsoft/playwright#41577)
Fixes
feat(mcp): surface non-2xx navigation status— navigation now reports the HTTP status instead of silently succeeding on error responses. (microsoft/playwright#41589)fix(mcp): enable the chromium sandbox for the default browser— the default Chromium browser now runs sandboxed. (microsoft/playwright#41652)fix(routing): normalize literal glob components through new URL()—routepatterns with literal glob characters now match reliably. (microsoft/playwright#41682)fix(mcp): close isolated HTTP client context on disconnect— isolated sessions release their context cleanly on disconnect. (microsoft/playwright#41560)