Skip to content

[Feature] Add screenshot output format option (PNG/JPEG/WebP) #1632

@fuleinist

Description

@fuleinist

Problem: The `browser.screenshot` tool in Playwright MCP outputs PNG by default, but web applications often need JPEG for photos or WebP for optimal compression, requiring post-processing.

Proposed Solution: Extend the screenshot tool to accept an `format` parameter (png/jpeg/webp) so users can specify their desired output format directly without additional conversion steps.

Use Case: When capturing screenshots of dashboards or photo-heavy web apps, users can request JPEG to reduce file size or WebP for modern compression without external tools.

Priority: Nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions