Skip to main content
Glama

Webpage Screenshot MCP Server

screenshot-element

Capture a screenshot of a specific webpage element using a CSS selector. Save the image in PNG, JPEG, or WebP format with customizable quality and padding for precise visual verification.

Instructions

Captures a screenshot of a specific element on a webpage using a CSS selector

Input Schema

NameRequiredDescriptionDefault
formatNoImage format for the screenshotpng
paddingNoPadding around the element in pixels
qualityNoQuality of the image (0-100), only applicable for jpeg and webp
selectorYesCSS selector for the element to screenshot
urlYesThe URL of the webpage
useDefaultBrowserNoWhether to use the system's default browser instead of Puppeteer's bundled Chromium
useSavedAuthNoWhether to use saved cookies from previous login
visibleBrowserNoWhether to show the browser window (non-headless mode)
waitForSelectorNoWhether to wait for the selector to appear

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "format": { "default": "png", "description": "Image format for the screenshot", "enum": [ "png", "jpeg", "webp" ], "type": "string" }, "padding": { "default": 0, "description": "Padding around the element in pixels", "type": "number" }, "quality": { "description": "Quality of the image (0-100), only applicable for jpeg and webp", "maximum": 100, "minimum": 0, "type": "number" }, "selector": { "description": "CSS selector for the element to screenshot", "type": "string" }, "url": { "description": "The URL of the webpage", "format": "uri", "type": "string" }, "useDefaultBrowser": { "default": false, "description": "Whether to use the system's default browser instead of Puppeteer's bundled Chromium", "type": "boolean" }, "useSavedAuth": { "default": true, "description": "Whether to use saved cookies from previous login", "type": "boolean" }, "visibleBrowser": { "default": false, "description": "Whether to show the browser window (non-headless mode)", "type": "boolean" }, "waitForSelector": { "default": true, "description": "Whether to wait for the selector to appear", "type": "boolean" } }, "required": [ "url", "selector" ], "type": "object" }
Install Server

Other Tools from Webpage Screenshot MCP Server

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/ananddtyagi/webpage-screenshot-mcp'

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