Skip to main content

PDF Export

Save the current page as a PDF file. Requires the pdf capability.

{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest", "--caps=pdf"]
}
}
}

browser_pdf_save

ParameterTypeRequiredDescription
filenamestringnoFile to save the PDF to. Relative names resolve against the workspace root. Defaults to page-{timestamp}.pdf in the output directory
→ browser_pdf_save
- [Page as pdf](page-2026-09-04T10-15-00-000Z.pdf)

→ browser_pdf_save { filename: "invoice.pdf" }
- [Page as pdf](invoice.pdf)
note

PDF generation is Chromium-only.

Use cases

  • Saving receipts or invoices from web applications
  • Archiving web pages for offline review
  • Generating reports from dashboards
  • Creating documentation from rendered HTML