Skip to main content
Glama

import_html_to_plan

Convert HTML pages or folders into an editable Design Plan with Auto Layout, styles, and design system components, returning a planId for later execution in Figma.

Instructions

Convert an HTML page or folder (e.g. a Claude Design standalone HTML export) into an editable Design Plan: flexbox → Auto Layout, colors, borders, radii, shadows, gradients, fonts, text (incl. RTL), images and SVG icons. With a scanned Design System, buttons/inputs/links become real DS components. Returns a planId for figma_execute_plan, exactly like figma_preview_plan. Nothing is sent to Figma yet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage (name or id) to build on when executed (default: the current page)
pathYesAn .html file, or a folder containing index.html
targetNoWhere to build: inside an existing node such as a section (needs approval), or at x/y on the page
fontMapNoReplace font families, e.g. { "YekanBakhFaNum": "IRANYekanX" } for a web font that isn't installed
targetsNoSeveral elements, each its own screen (e.g. the cards of a Claude Design review board); each keeps its rendered width
mappingsNoYour own element → component mappings; they win over automatic Design System matching
selectorNoCSS selector of the element to import (default body)
viewportNoViewport width(s). Default [1440, 390] (desktop + mobile)
useDesignSystemNoMap buttons/inputs/links to scanned DS components (default: true when a DS is cached)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the key safety trait ('Nothing is sent to Figma yet'), the return value (a planId), and conditional behavior (DS component substitution when a design system is scanned). It omits permissions, error behavior, and whether the plan persists, keeping it short of a 5.

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

Conciseness4/5

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

Four sentences, front-loaded with the core action, and every sentence carries information (what converts, DS behavior, return value, side-effect scope). The long enumeration of converted properties is slightly run-on but still earns its place by conveying conversion fidelity.

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?

With no output schema, the description compensates by naming the returned planId and its consumer. All nine parameters are schema-documented and the two-phase preview/execute pattern is explained, so an agent has enough to call it correctly; only error handling and plan lifetime are unaddressed.

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?

Schema description coverage is 100%, so the schema already documents all nine parameters, including nested target/targets/mappings/viewport details. The description only obliquely touches parameters (the design-system sentence gestures at useDesignSystem and mappings, and it mentions fonts), so the baseline of 3 for a fully documented schema is correct.

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 states a specific verb and resource — 'Convert an HTML page or folder ... into an editable Design Plan' — and enumerates the fidelity of the conversion (flexbox→Auto Layout, colors, borders, fonts, RTL, SVG). It even names the downstream consumer (figma_execute_plan) and the analogous sibling (figma_preview_plan), so an agent can place it relative to siblings without opening a schema.

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?

It clearly establishes the workflow context: this produces a plan, and execution happens later via figma_execute_plan; 'Nothing is sent to Figma yet' tells the agent this is the staging step. The main gap is that it never contrasts with the sibling figma_import_html, so the agent must guess which HTML entry point to pick.

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