Skip to main content
Glama

Vite MCP Server

by ESnark

capture-screenshot

Take screenshots of a web page or specific elements using CSS selectors. Integrates with Vite Dev Server to support MCP Clients lacking image content type support. Perfect for real-time development updates.

Instructions

Captures a screenshot of the current page or a specific element. This feature is for MCP Clients that do not support MCP Resource and image content type. If the image is successfully saved, you should request the user to provide the image.

Input Schema

NameRequiredDescriptionDefault
projectRootYesRoot directory path of the development project
selectorNoCSS selector to capture (captures full page if not provided)
urlNoURL to navigate to before capturing screenshot

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "projectRoot": { "description": "Root directory path of the development project", "type": "string" }, "selector": { "description": "CSS selector to capture (captures full page if not provided)", "type": "string" }, "url": { "description": "URL to navigate to before capturing screenshot", "type": "string" } }, "required": [ "projectRoot" ], "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/ESnark/blowback'

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