mcp-playwright
playwright_screenshot
Take a screenshot of the current page or a specific element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
downloadsDir | No | Custom downloads directory path (default: user's Downloads folder) | |
height | No | Height in pixels (default: 600) | |
name | Yes | Name for the screenshot | |
savePng | No | Save screenshot as PNG file (default: false) | |
selector | No | CSS selector for element to screenshot | |
storeBase64 | No | Store screenshot in base64 format (default: true) | |
width | No | Width 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"
}