v0.1.20
microsoft/playwright-cliv0.1.20Sep 14, 2026by yury-s
Upgrading?
AI Summary
Introduces WebMCP API integration for tool calling, adds idle timeout management for headless sessions to prevent resource leaks, and fixes several bugs including session daemon handling and file path resolution.
Key Highlights
- New webmcp-list and webmcp-call commands for interacting with WebMCP tools.
- Headless sessions now shut down automatically after one hour of inactivity.
- Added guide for attaching screenshots and videos to pull requests with gh --attach.
- Bug fix: Session daemons now exit properly when control sockets are deleted.
New Features
- webmcp-list and webmcp-call commands
- open and attach commands with --idle-timeout flag
- gh --attach integration guide
Full Release Notes
## What's New ### 🎉 New Commands - **`webmcp-list` / `webmcp-call`** — List and call the tools a page registers through the [WebMCP](https://webmachinelearning.github.io/webmcp/) API, letting the page do the work instead of driving its UI. When a page has WebMCP tools, the page status reports how many are available ([#42613](https://github.com/microsoft/playwright/pull/42613)). WebMCP is experimental, see [WebMCP in Chrome](https://developer.chrome.com/docs/ai/webmcp) for how to enable it. ### Other Changes - Headless sessions now shut down after one hour without commands, so a session an agent never closed no longer holds a browser; run `open` again to start a new one. Use `open --idle-timeout <ms>` (config `timeouts.idle`, env `PLAYWRIGHT_MCP_IDLE_TIMEOUT`) to change the timeout, `0` disables it. Headed browsers stay open, and attached browsers are only detached when `attach --idle-timeout <ms>` is set ([#42676](https://github.com/microsoft/playwright/pull/42676)) - The skill includes a guide for attaching screenshots and videos to pull requests with `gh --attach` ([#42645](https://github.com/microsoft/playwright/pull/42645)) ## Bug Fixes - Session daemons exit when their control socket is deleted or replaced, instead of staying alive with the browser ([#42454](https://github.com/microsoft/playwright/pull/42454)) - Explicitly named output files in a nested directory (e.g. `screenshot --filename=sub/shot.png`) no longer fail with `ENOENT` ([#42540](https://github.com/microsoft/playwright/pull/42540)) - Video chapters and screencast overlays are no longer hidden behind open dialogs and popovers ([#42642](https://github.com/microsoft/playwright/pull/42642)) - `npx playwright test --debug=cli` works for tests that create more than one browser context and for every test in a worker, not just the first ([#42503](https://github.com/microsoft/playwright/pull/42503)) - With `PLAYWRIGHT_MCP_EXTENSION_TOKEN` set, `attach --extension` fails after 30 seconds with a hint when the extension never connects (e.g. the token belongs to another Chrome profile) instead of hanging forever ([#42525](https://github.com/microsoft/playwright/pull/42525)) - Disable the Chromium sandbox by default on Linux for the bundled Chromium build, which lacks the setuid sandbox helper ([#42490](https://github.com/microsoft/playwright/pull/42490)) ## Upgrading ```bash npm install -g @playwright/cli@0.1.20 ```
Related Repositories
openclaw/openclaw★ 392,707
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
nilbuild/developer-roadmap★ 370,074
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
morluto/rea★ 358,339
Reverse engineer anything with agents, from app behavior down to native binaries.
anomalyco/opencode★ 219,723
The open source coding agent.
n8n-io/n8n★ 208,261
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.