Skip to main content
Glama

Better Playwright MCP

by livoras

getScreenshot

Capture and save web page screenshots to a temporary directory, specifying format, quality, or specific elements/clip regions for precise results.

Instructions

获取页面截图并保存到临时目录,返回文件路径

Input Schema

NameRequiredDescriptionDefault
clipNo截图区域
elementNo元素选择器(截取特定元素)
fullPageNo全页面截图(默认true)
pageIdYes页面ID
qualityNoJPEG质量(默认80)
typeNo图片格式(默认png)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "clip": { "additionalProperties": false, "description": "截图区域", "properties": { "height": { "type": "number" }, "width": { "type": "number" }, "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "x", "y", "width", "height" ], "type": "object" }, "element": { "description": "元素选择器(截取特定元素)", "type": "string" }, "fullPage": { "description": "全页面截图(默认true)", "type": "boolean" }, "pageId": { "description": "页面ID", "type": "string" }, "quality": { "description": "JPEG质量(默认80)", "type": "number" }, "type": { "description": "图片格式(默认png)", "enum": [ "png", "jpeg" ], "type": "string" } }, "required": [ "pageId" ], "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/livoras/better-playwright-mcp'

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