playwright_save_as_pdf
Convert web pages to PDF files with custom settings like filename, format, margins, and background graphics. Ideal for saving page content for offline use or sharing.
Instructions
Save the current page as a PDF file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filename | No | Name of the PDF file (default: page.pdf) | |
format | No | Page format (e.g. 'A4', 'Letter') | |
margin | No | Page margins | |
outputPath | Yes | Directory path where PDF will be saved | |
printBackground | No | Whether to print background graphics |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Playwright MCP Server
- clear_codegen_session
- end_codegen_session
- get_codegen_session
- playwright_assert_response
- playwright_click
- playwright_close
- playwright_console_logs
- playwright_custom_user_agent
- playwright_delete
- playwright_drag
- playwright_evaluate
- playwright_expect_response
- playwright_fill
- playwright_get
- playwright_get_visible_html
- playwright_get_visible_text
- playwright_go_back
- playwright_go_forward
- playwright_hover
- playwright_iframe_click
- playwright_navigate
- playwright_patch
- playwright_post
- playwright_press_key
- playwright_put
- playwright_save_as_pdf
- playwright_screenshot
- playwright_select
- start_codegen_session
Related Tools
- @vivekVells/mcp-pandoc
- @pvinis/mcp-playwright-stealth
- @2b3pro/markdown2pdf-mcp
- @pskill9/website-downloader
- @cablate/mcp-doc-forge