Skip to content

MCP Tools

imugi exposes 6 tools via the Model Context Protocol.

imugi_capture

Screenshot a webpage via headless Chromium.

Parameters:

NameTypeRequiredDefaultDescription
urlstringyesURL to capture
widthnumberno1440Viewport width
heightnumberno900Viewport height
fullPagebooleannotrueCapture full page

Returns: Screenshot image + metadata text.

imugi_compare

Compare a design image against a screenshot.

Parameters:

NameTypeRequiredDescription
designImagePathstringyes*Path to design image
figmaUrlstringyes*Figma URL (alternative to designImagePath)
screenshotUrlstringyes*URL to capture
screenshotPathstringyes*Path to screenshot (alternative to URL)

*Either designImagePath or figmaUrl required. Either screenshotUrl or screenshotPath required.

Returns: JSON with scores (SSIM, pixel diff, composite, region count) + heatmap image.

imugi_analyze

Analyze visual differences and suggest fixes.

Parameters:

NameTypeRequiredDescription
designImagePathstringyesPath to design image
screenshotPathstringyesPath to screenshot

Returns: JSON with classified diff regions, priorities, and CSS suggestions.

imugi_figma_export

Export a Figma frame as an image.

Parameters:

NameTypeRequiredDefaultDescription
urlstringyesFigma URL with node-id
scalenumberno2Export scale (1-4)
formatstringnopngOutput format: png, jpg, svg, pdf

Returns: Exported image.

imugi_detect

Detect project technology stack.

Parameters:

NameTypeRequiredDefaultDescription
projectDirstringno.Project directory path

Returns: JSON with detected framework, CSS method, language, and conventions.

imugi_serve

Start a development server.

Parameters:

NameTypeRequiredDescription
commandstringyesDev server command (e.g., npm run dev)
portnumberyesExpected port

Returns: JSON with URL, PID, and command.