mcp-playwright

playwright_screenshot

Take a screenshot of the current page or a specific element

Input Schema

NameRequiredDescriptionDefault
downloadsDirNoCustom downloads directory path (default: user's Downloads folder)
heightNoHeight in pixels (default: 600)
nameYesName for the screenshot
savePngNoSave screenshot as PNG file (default: false)
selectorNoCSS selector for element to screenshot
storeBase64NoStore screenshot in base64 format (default: true)
widthNoWidth in pixels (default: 800)

Input Schema (JSON Schema)

{ "properties": { "downloadsDir": { "description": "Custom downloads directory path (default: user's Downloads folder)", "type": "string" }, "height": { "description": "Height in pixels (default: 600)", "type": "number" }, "name": { "description": "Name for the screenshot", "type": "string" }, "savePng": { "description": "Save screenshot as PNG file (default: false)", "type": "boolean" }, "selector": { "description": "CSS selector for element to screenshot", "type": "string" }, "storeBase64": { "description": "Store screenshot in base64 format (default: true)", "type": "boolean" }, "width": { "description": "Width in pixels (default: 800)", "type": "number" } }, "required": [ "name" ], "type": "object" }