v0.1.16
microsoft/playwright-cliv0.1.16Jul 9, 2026by yury-s
AI Summary
Adds a `find` command for efficiently searching large snapshots and introduces mobile emulation to reduce snapshot size. The CLI is also exposed locally via `npx` and snapshots are optimized to be less verbose for AI.
Key Highlights
- New `find` command searches snapshots efficiently
- Mobile emulation with `--mobile` and specific device targeting
- Leaner AI snapshots to reduce token costs
- Local invocation via `npx playwright cli`
New Features
- Snapshot search command
- Mobile device emulation
- Leaner snapshots
- Local CLI invocation
Full Release Notes
## 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](https://github.com/microsoft/playwright/pull/41605), [microsoft/playwright#41654](https://github.com/microsoft/playwright/pull/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](https://github.com/microsoft/playwright/pull/41657)) - **Leaner snapshots** — AI snapshots are distilled to be less verbose, cutting token cost on every command that returns page state. ([microsoft/playwright#41604](https://github.com/microsoft/playwright/pull/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](https://github.com/microsoft/playwright/pull/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](https://github.com/microsoft/playwright/pull/41589)) - `fix(mcp): enable the chromium sandbox for the default browser` — the default Chromium browser now runs sandboxed. ([microsoft/playwright#41652](https://github.com/microsoft/playwright/pull/41652)) - `fix(routing): normalize literal glob components through new URL()` — `route` patterns with literal glob characters now match reliably. ([microsoft/playwright#41682](https://github.com/microsoft/playwright/pull/41682)) - `fix(mcp): close isolated HTTP client context on disconnect` — isolated sessions release their context cleanly on disconnect. ([microsoft/playwright#41560](https://github.com/microsoft/playwright/pull/41560))