You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Highlights
Search a large snapshot instead of capturing the whole thing — the new find command searches the page snapshot for text or a regexp and returns just the matching nodes with surrounding context (like grep -C), keeping big pages out of the model context. (microsoft/playwright#41605, microsoft/playwright#41654)
Mobile emulation — open --mobile emulates 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 as playwright cli (and playwright 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() — route patterns 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)