Skip to main content
Glama

Playwright MCP

by nzjami
Apache 2.0
299,985
  • Apple
  • Linux

browser_take_screenshot

Capture screenshots of web pages or specific elements using Playwright MCP. Save as PNG or JPEG, and choose between viewport or full-page capture. Designed for documentation and visual reference without action capabilities.

Instructions

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

Input Schema

NameRequiredDescriptionDefault
elementNoHuman-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.
filenameNoFile name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified.
fullPageNoWhen true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
rawNoWhether to return without compression (in PNG format). Default is false, which returns a JPEG image.
refNoExact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "element": { "description": "Human-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.", "type": "string" }, "filename": { "description": "File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified.", "type": "string" }, "fullPage": { "description": "When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.", "type": "boolean" }, "raw": { "description": "Whether to return without compression (in PNG format). Default is false, which returns a JPEG image.", "type": "boolean" }, "ref": { "description": "Exact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.", "type": "string" } }, "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/nzjami/mcpPlaywright'

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