NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4836 most downloaded on npm
Playwright Tools for MCP
Last release 6 days ago
28 Sep 2026
Ships fairly regularly
a new release about every 8 days
Nearly every release is documented
notes for 56 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
436 releases · first in 2025
One column per month.
Nothing published for this version
Nothing published for this version
Nothing published for this version
We are bringing back the --allow-origins flag! Please make sure you point at the trusted origins only.
We are bringing back the --allow-origins flag! Please make sure you point at the trusted origins only.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
There are now multiple ways to provide the initial state to the browser context or a page.
There are now multiple ways to provide the initial state to the browser context or a page.
For the storage state, you can either:
--user-data-dir argument. This will persist all browser data between the sessions.--storage-state argument. This will load cookies and local storage from the file into an isolated browser context.For the page state, you can use:
--init-page to point to a TypeScript file that will be evaluated on the Playwright page object. This allows you to run arbitrary code to set up the page. You can use various Playwright APIs there, perform necessary steps, etc.// init-page.ts
export default async ({ page }) => {
await page.context().grantPermissions(['geolocation']);
await page.context().setGeolocation({ latitude: 37.7749, longitude: -122.4194 });
await page.setViewportSize({ width: 1280, height: 720 });
};
--init-script to point to a JavaScript file that will be added as an initialization script. The script will be evaluated in every page before any of the page's scripts.
This is useful for overriding browser APIs or setting up the environment.// init-script.js
window.isPlaywrightMCP = true;
There now is a new browser_run_code command that allows LLM to run Playwright APIs as well. LLM can call it with a batch of Playwright APIs:
{
name: 'browser_run_code',
arguments: {
code: `
await page.getByRole("checkbox", { name: "Accept" }).check();
await page.getByRole("button", { name: "Submit" }).click();
`;
}
}
This way LLM can speed up repetitive operations and save on context tokens.
--allowed-origins and --blocked-origins flags are gone. Please use --proxy as a safer alternative or rely upon the underlying OS policies instead.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
fresh Playwright under the hood
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
fix(mcp): do not fail on wsl client w/ windows server -
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Incremental page snapshots: pageState now supports diffs. Unchanged subtrees are collapsed as - ref= [unchanged]. Reduces noise and payload size. micr
pageState now supports diffs. Unchanged subtrees are collapsed as - ref=<id> [unchanged]. Reduces noise and payload size. microsoft/playwright#37795Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
https://github.com/microsoft/playwright/commit/47f3da37a27217f16c36669261cb214864413209 feat(mcp): support test-id-attribute option
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →