Skip to main content
Glama
Forge-Space

@forgespace/ui-mcp

Official
by Forge-Space

image_to_component

Convert a screenshot, mockup, or wireframe image into framework-specific component code. Supports React, Next.js, Vue, Angular, Svelte, HTML, and UI libraries like shadcn/ui.

Instructions

Convert a screenshot, mockup, or wireframe image into framework-specific component code. Supports React, Next.js, Vue, Angular, Svelte, and HTML. Optionally uses shadcn/ui, Radix, Headless UI, PrimeVue, or Material UI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_dataYesBase64-encoded image data of the screenshot, mockup, or wireframe to convert into a component
image_mime_typeNoMIME type of the imageimage/png
frameworkYesTarget framework for generated code
component_nameNoOptional name for the generated component (auto-detected if omitted)
component_libraryNoComponent library to use in generated codenone
descriptionNoOptional textual description of the UI in the image to guide code generation (e.g., "A pricing page with 3 tiers and a toggle for monthly/annual billing")
dark_modeNoGenerate dark mode variant
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavioral traits. It describes the core transformation but omits important details such as data handling policies (is the image stored or discarded?), rate limits, required permissions, or whether the operation is idempotent. This lack of transparency could lead to misuse.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at two sentences. The first sentence front-loads the main purpose with a strong verb ('Convert'), and the second complements with supported options. Every word earns its place, and no redundant information is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the 7 parameters, full schema coverage, and no output schema, the description adequately explains the input requirements and outputs (component code). It covers framework and library options. However, it lacks behavioral context (e.g., error handling, limitations on image size) that would make it fully complete for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides 100% coverage with descriptions for all 7 parameters, so the description does not need to add much. It does clarify the optional nature of component_library and mentions supported frameworks, but these are already present in the schema enums. The description adds marginal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it converts images into framework-specific component code, listing supported frameworks and optional UI libraries. It distinguishes itself from sibling tools like analyze_design_image_for_training (which analyzes images for training) and generate_ui_component (which likely does not take image input).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description indicates when to use the tool (when you have a screenshot, mockup, or wireframe to convert). However, it does not explicitly state when not to use it or mention alternatives among the many sibling tools, such as generate_ui_component for text-based generation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/Forge-Space/ui-mcp'

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