Skip to main content
Glama

mcp-playwright

playwright_screenshot

Capture screenshots of web pages or specific elements using CSS selectors, with options to adjust dimensions, save as PNG, or store in base64 format. Ideal for browser automation tasks.

Instructions

Take a screenshot of the current page or a specific element

Input Schema

NameRequiredDescriptionDefault
downloadsDirNoCustom downloads directory path (default: user's Downloads folder)
fullPageNoStore screenshot of the entire page (default: false)
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" }, "fullPage": { "description": "Store screenshot of the entire page (default: false)", "type": "boolean" }, "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" }

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/executeautomation/mcp-playwright'

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