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
Adds `webp` to the screenshot type union for `page.screenshot()`,
`locator.screenshot()`, the MCP `browser_take_screenshot` tool, and
the playwright-cli `screenshot` command. Encoded natively by each
browser — CDP for Chromium, `Page.screenshot` for Firefox, and
`Page.snapshotRect` (with format + quality) for WebKit; the WebKit
path also drops the PNG→JPEG re-encode round-trip in Node.
The MCP/CLI tools infer the format from the filename extension when
`type` is unset. The CLI help generator now lists enum choices for
any `z.enum` option.
WebP screenshots are not supported in WebKit on macOS because
CoreGraphics does not ship a webp encoder UTI; the WebKit delegate
throws a clear error there.
Fixesmicrosoft/playwright-mcp#1632
0 commit comments