Highlights
-
Network inspection split into numbered commands (#377) —
networkis replaced with:requests— numbered list of requests with stable indexesrequest <num>— full details for one requestrequest-headers <num>,request-body <num>,response-headers <num>,response-body <num>— pipe-friendly part extractors
Bodies are no longer inlined; pass
--filenameon any part-command to save the result to a file. (microsoft/playwright#40447, microsoft/playwright#40454) -
Spec-driven testing skill — a new
references/spec-driven-testing.mdreference guides agents through a plan / generate / heal workflow for driving Playwright tests from a written spec. (microsoft/playwright#40460)
Behavior changes
- Read-only data-fetching commands (
cookie-list,cookie-get,localstorage-list,localstorage-get,sessionstorage-list,sessionstorage-get,route-list,request-headers,request-body,response-headers,response-body) now emit raw output by default — no more### Resultwrapper, no--rawneeded. (microsoft/playwright#40473) - Extension mode now ignores the
browsersection of any loaded config file (bothuserDataDirandexecutablePath); only the browser/channel from--browserorPLAYWRIGHT_MCP_BROWSERapplies. (microsoft/playwright#40475) requestsnow appends a hint when static requests are filtered out, telling the user to pass--staticto see them. (microsoft/playwright#40454)
Fixes
fix(cli): resolve initPage/initScript paths and surface load errors(#290) — relativeinitPage/initScriptpaths from--configfiles now resolve against the config dir (matching Vite/Vitest/ESLint), and CLI-flag / env-var entries resolve againstcwd. Load errors are no longer silently swallowed. (microsoft/playwright#40451)fix(mcp): detect extension in non-default Chrome profiles— the--extensionpreflight now scans everyProfile *subdirectory under the user data dir, not justDefault. (microsoft/playwright#40471)fix(mcp): surface unhandled rejections instead of crashing the server— async errors from user-installed callbacks (e.g. apage.routehandler) are now reported on the next tool response instead of tearing down the MCP transport. (microsoft/playwright#40452)