Skip to main content
Glama

Playwright MCP Server

by devskido
MIT License
10,475

playwright_save_as_pdf

Convert web pages to PDF files by specifying output path, filename, format, and margins. Ideal for saving web content in print-ready format with optional background graphics.

Instructions

Save the current page as a PDF file

Input Schema

NameRequiredDescriptionDefault
filenameNoName of the PDF file (default: page.pdf)
formatNoPage format (e.g. 'A4', 'Letter')
marginNoPage margins
outputPathYesDirectory path where PDF will be saved
printBackgroundNoWhether to print background graphics

Input Schema (JSON Schema)

{ "properties": { "filename": { "description": "Name of the PDF file (default: page.pdf)", "type": "string" }, "format": { "description": "Page format (e.g. 'A4', 'Letter')", "type": "string" }, "margin": { "description": "Page margins", "properties": { "bottom": { "type": "string" }, "left": { "type": "string" }, "right": { "type": "string" }, "top": { "type": "string" } }, "type": "object" }, "outputPath": { "description": "Directory path where PDF will be saved", "type": "string" }, "printBackground": { "description": "Whether to print background graphics", "type": "boolean" } }, "required": [ "outputPath" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devskido/customed-playwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server