Skip to main content
Glama

MCP Playwright CDP

playwright_screenshot

Capture screenshots of web pages or specific elements using CSS selectors. Customize dimensions, save as PNG, or store in base64 format, with optional directory path settings for saved files.

Instructions

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" }

Other Tools from MCP Playwright CDP

Related Tools

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/lars-hagen/mcp-playwright-cdp'

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