Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

Mimic AI

NPM · @MIAPRE/MIMIC-AI · SCANNED AUG 7

Builds Figma from your design system: real components and tokens, enforced, learning every build.

Available components

+61 this week 66 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security87
  • No malware found by supply-chain analysis.Pass
  • Known CVEs were checked across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Dependency health was assessed across the 95 of 99 dependencies we could resolve, so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability51
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 7512 tokens (~288/item across 26 items; 26 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management37
  • Stability observed for 11 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (19% of tools); any adoption earns full credit.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @miapre/mimic-ai

# add to Claude Code
claude mcp add miapre-mimic-ai -- npx -y @miapre/mimic-ai
# add to Codex CLI
codex mcp add miapre-mimic-ai -- npx -y @miapre/mimic-ai
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "miapre-mimic-ai": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@miapre/mimic-ai"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add miapre-mimic-ai --command npx --arg -y --arg @miapre/mimic-ai
# ~/.hermes/config.yaml
mcp_servers:
  miapre-mimic-ai:
    command: "npx"
    args: ["-y", "@miapre/mimic-ai"]
// mcp.json
{
  "mcpServers": {
    "miapre-mimic-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@miapre/mimic-ai"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 7 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

  • 5 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.

  • 3 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 20 to 23. That category is still filling its 30-day observation window: 6 days of observed history at the previous scan, 7 at this one. The score rises as the window fills, whether or not the server changes.

  • 2 Aug 26 +55
    • Provenance: unverified → fail security
    • Known CVEs: unverified → partial security
    • Install scripts: unverified → pass security
    • Malware scan: unverified → pass security
    • Tool coverage: unverified → 100 functional
    • License: unverified → pass functional
    • Stability: unverified → 0.20 functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Schema quality: unverified → good functional
    • Licence: MIT functional
  • 1 Aug 26 +3
    • Dependency health: unverified → partial functional
  • 31 Jul 26 −19
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 30 Jul 26 −18
    • Tool coverage: 100 → unverified functional
    • First check of Schema quality: unverified functional
  • 27 Jul 26 42

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 7 Aug 2026 · Analysed npm/@miapre/[email protected]

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem npm
Dependencies 95 packages
Packages resolved 95
Deprecated 95
Stale 29
Tree resolution Partial

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools · 26 exposed · ~7,512 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
figma_component_text ~160

Overrides text on a component instance in one call — pass an `overrides` array (a single override is just a one-item array). Each override sets one text node via textNodeName (matches by name — use for most cases) or textNodeId (exact match — use when configurationHints.textNodes gave you IDs, e.g. components with repeated node names). Use after figma_insert_component; configurationHints.textNodes lists every node that needs overriding. Saves N-1 tool calls vs. one call per node. Requires Phase 2.

NameTypeReqDescription
nodeIdstringyesComponent instance node ID.
overridesarrayyesArray of text overrides to apply. Each item needs textNodeName or textNodeId, plus content.

No output schema declared.

No examples provided.

figma_create_frame ~1,041

Creates an auto-layout container frame (layout primitive) — the fallback when NO DS component exists for a section or layout. Every fill/padding/gap/radius binds to DS variables; component-like names are gated (pass confirmedNoComponent + primitiveOverrideReason for confirmed gaps). Name frames after their HTML role ("Header Section", "Card: Revenue"). Key params: parentId (omit for page-level artboard), direction, layoutSizing*, *Variable bindings, GRID mode. Check mimic_map_components FIRST. Phase 2+.

NameTypeReqDescription
clipsContentbooleanClip content to frame bounds.
confirmedNoComponentbooleanSet true only after DS/library search confirms no component exists for this role.
cornerRadiusnumberRaw corner radius in pixels. Use cornerRadiusVariable when DS has radius variables.
cornerRadiusVariablestringDS variable path for corner radius.
counterAxisAlignItemsstringCounter axis alignment.
directionstringAuto-layout direction. Prefer HORIZONTAL or VERTICAL — NONE breaks portability. Use layoutPositioning ABSOLUTE for overlay children instead.
fillstringRaw hex color for background fill (e.g. "#ffffff"). Fallback when no DS styles/variables.
fillStyleIdstringDS fill style key for background (from figma_list_ds (kind: "fill_styles")). Preferred over fillVariable when DS has fill styles but no variables.
fillVariablestringDS variable path for background fill.
gapnumberRaw item spacing in pixels. Use gapVariable when DS has spacing variables.
gapVariablestringDS variable path for item spacing.
gridColumnCountnumberNumber of grid columns. Only used when layoutMode is GRID.
gridColumnGapnumberRaw column gap in pixels. Only used when layoutMode is GRID.
gridColumnGapVariablestringDS spacing variable path for GRID column gap.
gridColumnSpannumberWhen this frame is a child of a GRID-layoutMode parent, how many columns it should span.
gridRowCountnumberNumber of grid rows. Only used when layoutMode is GRID.
gridRowGapnumberRaw row gap in pixels. Only used when layoutMode is GRID.
gridRowGapVariablestringDS spacing variable path for GRID row gap.
gridRowSpannumberWhen this frame is a child of a GRID-layoutMode parent, how many rows it should span.
heightnumberFixed height in pixels.
layoutModestringSet to GRID to use CSS-grid-style layout (Grid automation, May 2026) instead of auto-layout. Requires gridRowCount/gridColumnCount. Errors clearly on Figma versions that do not support GRID layoutMod…
layoutPositioningstringSet to ABSOLUTE to position this frame as an overlay inside an auto-layout parent (out of flow but still contained). Use for grid lines, positioned labels, etc.
layoutSizingHorizontalstringHorizontal sizing mode.
layoutSizingVerticalstringVertical sizing mode.
maxWidthnumberMax width constraint.
namestringyesSemantic name describing the HTML role (e.g., "Header Section", "Metrics Row", "Card: Revenue"). Never use generic names like "Frame".
paddingnumberRaw uniform padding in pixels. Use paddingVariable when DS has spacing variables.
paddingBottomnumberRaw bottom padding in pixels.
paddingBottomVariablestringDS variable path for bottom padding.
paddingLeftnumberRaw left padding in pixels.
paddingLeftVariablestringDS variable path for left padding.
paddingRightnumberRaw right padding in pixels.
paddingRightVariablestringDS variable path for right padding.
paddingTopnumberRaw top padding in pixels.
paddingTopVariablestringDS variable path for top padding.
paddingVariablestringDS variable path for uniform padding.
parentIdstringParent node ID. Omit for page-level.
primaryAxisAlignItemsstringPrimary axis alignment.
primitiveOverrideReasonstringRequired with confirmedNoComponent for component-like primitives. Explain why this frame must be custom.
strokestringRaw hex color for stroke (e.g. "#e4e6ee"). Fallback when no DS stroke variables.
strokeVariablestringDS variable path for stroke color.
strokeWeightnumberStroke weight in pixels.
widthnumberFixed width in pixels.
xnumberX position in pixels. Required for page-level artboards. Use rightmost existing artboard x + width + 80.
ynumberY position in pixels. Defaults to 0 for artboards.

No output schema declared.

No examples provided.

figma_create_shape ~462

Creates a rectangle or ellipse primitive node bound to DS variables. Use for dividers, backgrounds, chart bars/grid-lines/data-points, avatars-as-circles, or any shape with no DS component. Params: shape ("rectangle"|"ellipse", required), parentId (required), name, width, height, fillStyleId/fillVariable/fill, and for rectangle: cornerRadius(Variable), stroke(Variable), strokeWeight, layoutPositioning, layoutSizing*; for ellipse: arcData ({startingAngle, endingAngle, innerRadius} — donut/pie segments). Requires Phase 2. Prefer a DS component over a shape when one exists.

NameTypeReqDescription
arcDataobjectArc data for donut/pie segments. Ellipse only.
cornerRadiusnumberRaw corner radius in pixels. Rectangle only.
cornerRadiusVariablestringDS variable path for corner radius. Rectangle only.
fillstringRaw hex color for fill (e.g. "#e4e6ee"). Fallback when no DS styles/variables. Rectangle only.
fillStyleIdstringDS fill style key (from figma_list_ds kind="fill_styles"). Rectangle only.
fillVariablestringDS variable path for fill color.
heightnumberHeight in pixels.
layoutPositioningstringSet to ABSOLUTE to overlay this shape inside an auto-layout parent (e.g., grid lines behind bars). Rectangle only.
layoutSizingHorizontalstringHorizontal sizing mode. Auto-defaults to FIXED when width is specified. Rectangle only.
layoutSizingVerticalstringVertical sizing mode. Auto-defaults to FIXED when height is specified. Rectangle only.
namestringNode name.
parentIdstringyesParent node ID.
shapestringyesWhich primitive to create.
strokestringRaw hex color for stroke. Fallback when no DS stroke variables. Rectangle only.
strokeVariablestringDS variable path for stroke color. Rectangle only.
strokeWeightnumberStroke weight in pixels. Rectangle only.
widthnumberWidth in pixels.

No output schema declared.

No examples provided.

figma_create_svg ~207

Creates a node from an SVG string in Figma. Useful for icons and custom graphics. Returns unboundChildren — a list of child nodes that need DS variable bindings. You MUST apply figma_update_node (op: "fill") to every unbound vector and figma_update_node (op: "text_style" then op: "fill") to every unbound text. Leaving unbound children breaks DS compliance and light/dark mode.

NameTypeReqDescription
fillVariablestringDS variable path for fill override (applied to ALL child vectors uniformly).
layoutSizingHorizontalstringHorizontal sizing mode. Use FILL for charts inside auto-layout containers so they stretch to the container width.
layoutSizingVerticalstringVertical sizing mode.
namestringNode name.
parentIdstringyesParent node ID.
strokeVariablestringDS variable path for stroke override.
svgStringstringyesSVG markup string.

No output schema declared.

No examples provided.

figma_create_text ~354

Creates a standalone text node bound to a DS text style (textStyleId — accepts style name or key) and DS color variable (fillVariable) — both are mandatory when the DS has them. Use for text OUTSIDE components; text inside a component instance uses figma_component_text instead. Strips hardcoded line breaks (container width controls wrapping). Name nodes after their HTML role ("Page Title", "Card: Revenue Label"). Params: parentId + content required. Phase 2+.

NameTypeReqDescription
contentstringyesText content.
fillStyleIdstringDS fill style key for text color (from figma_list_ds (kind: "fill_styles")). Preferred over fillVariable when DS has fill styles but no variables.
fillVariablestringDS variable path for text color.
fontSizeVariablestringDS variable path for font size (if no text style).
layoutPositioningstringSet to ABSOLUTE to overlay this text inside an auto-layout parent.
layoutSizingHorizontalstringHorizontal sizing mode.
lineHeightVariablestringDS variable path for line height.
namestringSemantic name describing the HTML element role (e.g., "Page Title", "Card: Revenue Label", "Subtitle"). Never use generic names like "Text".
parentIdstringyesParent node ID.
textAlignHorizontalstringText alignment.
textStyleIdstringDS text style — accepts style name (e.g. "Text sm/Semibold") or style key. Names are resolved to keys automatically.
widthnumberFixed width for the text node.

No output schema declared.

No examples provided.

figma_delete_node ~94

Deletes a node from the Figma document. NEVER deletes artboards (top-level frames) — only child nodes within an artboard. To rebuild a screen, create a NEW artboard alongside the existing one. Destructive and irreversible via the API — verify the nodeId with figma_inspect first if unsure.

NameTypeReqDescription
nodeIdstringyesNode ID to delete. Must NOT be a top-level artboard.

No output schema declared.

No examples provided.

figma_insert_component ~215

Imports and inserts a DS component instance into the document. Returns componentKey/nodeId, configurationChecklist (booleans to enable, text nodes to override, variants to set), and _autoApplied variant defaults replayed from the knowledge store when a confirmed recipe exists. Params: componentKey (required, from mimic_map_components/discovery), parentId (required), name (instance name override), importMode ("component"|"componentSet", usually inferred), applyRecipe (false to skip auto-replay). Workflow position: Phase 3 build, after mimic_map_components. Follow up with figma_component_text and figma_set_variant.

NameTypeReqDescription
applyRecipebooleanSet to false to skip auto-applying confirmed recipe defaults. Defaults to true.
componentKeystringyesComponent key from the DS library.
importModestringOptional import hint. Usually inferred from DS discovery cache.
namestringInstance name override.
parentIdstringyesParent node ID to insert into.

No output schema declared.

No examples provided.

figma_inspect ~342

Reads Figma document state — node properties, children, parent, text detail, pages, top-level page nodes, selection, component variants, or a build-manifest section lookup. Read-only, never blocked by phase gates. Use to verify state before/after edits, discover node IDs, or check what a component set supports. Params: target (required: "node"|"children"|"parent"|"text"|"pages"|"page"|"selection"|"variants"|"section") selects the read; nodeId (node/children/parent/text), depth (children, default 1), componentSetKey (variants), sectionName (section — HTML section name from the last build).

NameTypeReqDescription
componentSetKeystringComponent set key. Required for target="variants".
depthnumberHow many levels deep to traverse. Only used with target="children". Default 1.
nodeIdstringNode ID to inspect. Required for target: node, children, parent, text.
sectionNamestringThe HTML section to find (e.g., "header", "metrics row", "table"). Required for target="section".
targetstringyes"node"=full node props, "children"=child nodes, "parent"=parent node, "text"=text node detail, "pages"=all pages in the file, "page"=top-level nodes on the current page, "selection"=currently selecte…

No output schema declared.

No examples provided.

figma_list_ds ~200

Lists cached DS assets from the local cache — text styles, fill (color) styles, or variables. Use to browse what mimic_discover_ds already cached before binding: find a textStyleId for figma_create_text, a fillStyleId for figma_create_shape, or a variable path for figma_update_node. Params: kind ("text_styles"|"fill_styles"|"variables", required), filter (keyword, fill_styles only), category (text|background|border|foreground|spacing|radius, variables only). Read-only.

NameTypeReqDescription
categorystringOptional category filter. Only used with kind="variables" (text, background, border, foreground, spacing, radius). Omit for all.
filterstringOptional keyword filter on the style name. Only used with kind="fill_styles" (e.g. "Blue", "Gray", "Red").
kindstringyesWhich cache to list.

No output schema declared.

No examples provided.

figma_manage_slot ~203

Fills or resets a SLOT-type component property on an existing instance (Figma Slots, GA June 2026). action="fill" inserts a DS component instance into the slot (use configurationHints.slotProperties from figma_insert_component to find slotName). action="reset" restores the slot's default content. Params: nodeId (required), slotName (required), action ("fill"|"reset", default "fill"), componentKey (required for action="fill"). Requires Phase 2. Slot fills are recorded for build-report visibility only — never auto-replayed.

NameTypeReqDescription
actionstring"fill" inserts a component into the slot (default). "reset" restores default content.
componentKeystringDS component key to insert into the slot. Required for action="fill".
nodeIdstringyesInstance node ID that owns the slot.
slotNamestringyesSLOT property name from configurationHints.slotProperties.

No output schema declared.

No examples provided.

figma_set_variant ~136

Sets variant properties (e.g. Size, State, Color) on a component instance. Use figma_inspect (target: "variants") first to see available properties/values for the component set. Params: nodeId (required), properties (required, key-value map e.g. { "Size": "Large" }). Requires Phase 2. Tracks replay success/failure for the knowledge store's recipe learning.

NameTypeReqDescription
nodeIdstringyesComponent instance node ID.
propertiesobjectyesVariant property key-value pairs (e.g. { "Size": "Large", "State": "Default" }).

No output schema declared.

No examples provided.

figma_swap_main_component ~166

Swaps or replaces a component instance's underlying component. mode="swap" (default) preserves the instance's overrides (text, variants) — use when switching to a close variant of the same component. mode="replace" removes the instance and creates a fresh one at the same position — use when swapping to an unrelated component where old overrides would be invalid. Params: nodeId (required), newComponentKey (required), mode ("swap"|"replace", default "swap"). Requires Phase 2.

NameTypeReqDescription
modestring"swap" preserves overrides (default). "replace" creates a fresh instance at the same position.
newComponentKeystringyesNew component key to swap/replace to.
nodeIdstringyesInstance node ID.

No output schema declared.

No examples provided.

figma_update_node ~704

Mutates an existing Figma node or the editor's UI focus, dispatched by `op`. Ops: "text" (set text content), "text_style" (apply DS text style), "fill" (fillStyleId/fillVariable/raw fill), "layout" (sizing, padding, gap, alignment), "visibility" (show/hide), "position" (absolute x/y), "restyle" (artboard/frame fill+radius+stroke+padding+gap in one call), "move" (reparent via parentId+index), "select" (select+scroll into view), "page" (switch page by name/id). All ops except "select"/"page" require Phase 2 (DS discovered) and validate any *Variable path against the cached DS before sending. Use figma_delete_node (separate, destructive tool) to remove a node instead.

NameTypeReqDescription
contentstringNew text content. op="text".
cornerRadiusVariablestringDS variable for corner radius. op="restyle".
counterAxisAlignItemsstringop="layout".
fillRaw color as hex string ("#3b36f2") or RGB object. op="fill" fallback when no DS styles/variables available.
fillStyleIdstringDS fill style key (from figma_list_ds). op="fill". Priority: fillStyleId → fillVariable → fill.
fillVariablestringDS variable path for fill color. op="fill" or "restyle".
gapVariablestringDS variable for item spacing. op="layout" or "restyle".
heightnumberFixed height. op="layout".
indexnumberInsert index within the new parent. op="move". Omit for end.
layoutSizingHorizontalstringop="layout".
layoutSizingVerticalstringop="layout".
maxWidthnumberMax width constraint. op="layout".
nodeIdstringTarget node ID. Required for every op except "page".
opstringyesWhich mutation to perform.
paddingBottomVariablestringop="layout".
paddingLeftVariablestringop="layout".
paddingRightVariablestringop="layout".
paddingTopVariablestringop="layout".
paddingVariablestringDS variable for uniform padding. op="layout" or "restyle".
pageIdstringPage ID to switch to. op="page". Takes precedence over pageName.
pageNamestringPage name to switch to. op="page".
parentIdstringNew parent node ID. op="move".
primaryAxisAlignItemsstringop="layout".
strokeVariablestringDS variable for stroke color. op="restyle".
strokeWeightnumberStroke weight. op="restyle".
textStyleIdstringDS text style key. op="text_style".
visiblebooleanTrue to show, false to hide. op="visibility".
widthnumberFixed width. op="layout".
xnumberAbsolute x position. op="position".
ynumberAbsolute y position. op="position".

No output schema declared.

No examples provided.

figma_validate_ds_compliance ~100

Recursively checks a node (and its children) against the current DS enforcement profile — flags hardcoded colors/fonts instead of variables/styles, missing text style bindings, and other DS violations. Use during Phase 3/4 QA, especially at the 20-op build checkpoint, before generating the report. Params: nodeId (required, typically the artboard root).

NameTypeReqDescription
nodeIdstringyesThe Figma node ID to validate.
NameTypeReqDescription
summaryobject
violationsarrayPer-node compliance violations found.

No examples provided.

figma_variable_modes ~171

Sets the variable mode (e.g. light/dark) on a node — required on every new artboard, or DS variables render as black. By default sets the mode on ALL variable collections at once (pass modeIndex only). Pass collectionName to target a single collection instead. Params: nodeId (required, typically the artboard), modeIndex (required, 0=default/light, 1=dark), collectionName (optional). Requires Phase 2.

NameTypeReqDescription
collectionNamestringOptional — variable collection name. Omit to set the mode on ALL collections at once (recommended).
modeIndexnumberyesMode index. 0 = default/light, 1 = dark (if available).
nodeIdstringyesNode ID (typically the artboard).

No output schema declared.

No examples provided.

mimic_ai_knowledge_read ~125

Loads the knowledge store: learned component recipes, layout/pattern data, DS gaps, user-defined rules, and meta stats (build counts, replay savings). Call at the start of a session to see what Mimic has already learned about this DS. Params: format ("json" default — structured data; "design_md" — renders the current DS + recipes as a DESIGN.md-style markdown string for documentation/handoff).

NameTypeReqDescription
formatstring"json" (default) returns structured store contents. "design_md" returns a rendered DESIGN.md markdown string instead.

No output schema declared.

No examples provided.

mimic_ai_knowledge_write ~182

Saves a component recipe, layout pattern, DS gap, or user-defined design rule to the persistent knowledge store — the mechanism that lets Mimic learn across builds. Use "rule" when the user corrects build behavior in a generalizable way (e.g. "cards always have a header + content frame"); other types are usually written automatically by the build pipeline. Params: type ("component"|"pattern"|"gap"|"rule", required), id (unique key, required), data (entry payload, required).

NameTypeReqDescription
dataobjectyesThe entry data to store.
idstringyesUnique identifier for the entry.
typestringyesType of knowledge entry to save. Use "rule" for user-defined design rules that should be followed on every build (e.g., color semantics, card structure, component usage patterns).

No output schema declared.

No examples provided.

mimic_build_chart ~473

Bulk chart builder — creates an entire chart in ONE call: container, visualization (native rectangles or stroke-free SVG), axis labels, grid lines, and legend, all bound to DS variables and text styles. Use for ANY HTML chart instead of hand-building; reduces 30-50 tool calls to 1. chartType: bar, line, donut, radar. Key params: parentId, chartType, title, data, dimensions, colors (neutral DS data palette — never Brand/Success/Warning/Error). Use mimic_compute_chart for geometry-only. Phase 2+.

NameTypeReqDescription
chartTypestringyesThe type of chart to build.
colorsarrayDS color variable paths for data elements. Falls back to DS cache palette or default.
dataarrayyesChart data points. Bar: [{label, value}]. Donut: [{label, value}]. Line: [{label, value}] or [{x, y}]. Radar: [{label, value}] or [{label, values: [v1, v2]}] for multi-series.
dimensionsobjectyesChart dimensions. Bar: {chartHeight, chartWidth?}. Donut: {outerRadius, innerRadius}. Line: {plotWidth, plotHeight}. Radar: {radius}. Optional for bar/line: yPrefix, ySuffix.
gridColorstringDS variable path for grid lines. Falls back to DS cache border/secondary match.
labelColorstringDS variable path for axis label text color. Falls back to DS cache text/tertiary match.
labelStylestringDS text style name for axis labels. Falls back to smallest text style in DS cache.
parentIdstringyesParent node ID to insert the chart into.
seriesNamesarrayLegend labels for multi-series charts (e.g. ["Current", "Target"]). For donut charts, legend is auto-generated from data labels.
titlestringyesChart card title text.
titleColorstringDS variable path for title text color. Falls back to DS cache text/primary match.
titleStylestringDS text style name for chart title. Falls back to DS cache sm/Semibold match.

No output schema declared.

No examples provided.

mimic_build_table ~467

Bulk table builder — creates an entire data table in ONE call: column frames, DS Table header cell + Table cell components, variants (cellVariants for per-value badge colors), text, and consistent row height. Use for ANY HTML data table instead of cell-by-cell insertion; reduces 200+ tool calls to 1. Requires table cell components in the DS (returns creation guidance if missing). Key params: parentId, columns (header/style/cellVariants), rows ("text|supporting" syntax), cellHeight. Phase 2+.

NameTypeReqDescription
cellHeightnumberFixed height for ALL data cells in pixels. Ensures row alignment across columns. Common values: 44, 56, 64, 72. If omitted, cells use HUG (may cause misalignment).
columnsarrayyesColumn definitions. Each column becomes a vertical frame with a header cell + data cells.
dataCellKeystringComponent key for Table cell. If omitted, auto-resolved from DS cache/knowledge store.
firstColumnPaddingLeftstringDS spacing variable path for extra left padding on header cells and data cells of the FIRST column. Use when the table is inside a card to create visual inset (e.g., 24px/spacing-3xl). Applied via pa…
headerCellKeystringComponent key for Table header cell. If omitted, auto-resolved from DS cache/knowledge store.
headerVariantobjectVariant overrides for all header cells (e.g. {"Checkbox": "False"}). Applied to every header.
lastColumnPaddingRightstringDS spacing variable path for extra right padding on header cells and data cells of the LAST column. Use when the table is inside a card to create visual inset (e.g., 24px/spacing-3xl). Applied via pa…
parentIdstringyesParent node ID to insert the table body into.
rowsarrayyesRow data as arrays of strings. Each inner array has one value per column. Use "|" to separate text and supporting text (e.g. "Sarah Chen|[email protected]"). Array length must match columns length.

No output schema declared.

No examples provided.

mimic_compute_chart ~237

Computes chart geometry (bar positions, SVG paths, arc angles, grid lines, axis labels) from raw data WITHOUT building anything in Figma — pure math, no bridge/Figma calls, usable at any phase. Use when you need coordinates/paths to hand-build a chart yourself; use mimic_build_chart instead when you just want the finished chart created in one call. Supports chartType: bar, horizontalBar, donut, line, radar, scatter, heatmap. Params: chartType (required), data (required, points), dimensions (chart-type-specific sizing).

NameTypeReqDescription
chartTypestringyesThe type of chart to compute.
dataarrayyesChart data points. Shape depends on chartType.
dimensionsobjectyesChart dimensions. Keys depend on chartType: chartHeight + optional chartWidth (bar), outerRadius/innerRadius (donut), plotWidth/plotHeight (line/scatter), radius/cx/cy (radar), cellWidth/cellHeight (…

No output schema declared.

No examples provided.

mimic_discover_ds ~443

Complete DS discovery in two steps. Step 1: call with fileKey — discovers variables, text styles, components via plugin API, caches everything, stays at Phase 1. Step 2: call again with communitySearchResults (library names from Figma MCP search_design_system) — verifies no community libraries were missed, then advances to Phase 2 (build-ready). Build tools are BLOCKED until Step 2 completes. If a community library's variables are not discoverable via the plugin API (communityVariablesRequired response), fetch them via Figma MCP search_design_system and pass as externalVariables.

NameTypeReqDescription
communitySearchResultsarrayUnique library names found via Figma MCP search_design_system (query "color", includeVariables: true). Required after initial discovery to verify no community libraries were missed. Pass only non-nul…
communitySearchVariableKeysobjectMap of libraryName → one sample variable key from search results. Used to validate which libraries are actually enabled in the file. Extract one key per library from the color search results.
externalVariablesarrayVariables fetched via Figma MCP search_design_system for community libraries whose variables are not discoverable via the plugin API. Pass after receiving a communityVariablesRequired response.
fileKeystringyesFigma file key to discover DS from.
identityDriftChoicestringAnswer to a library-identity-drift prompt (name-keyed community library where most previously-known components vanished). "same" keeps learning under the existing history; "different" starts a fresh…
libraryFileKeystringLibrary file key (alphanumeric string from the Figma URL of the library file). Prompted once per library, cached permanently.
libraryKeystringLibrary key to use when multiple DS libraries are available. Returned from a previous call that detected multiple libraries.
skipRestApibooleanSkip REST API component discovery (e.g. for community libraries where the file key is unavailable). Discovery proceeds with plugin-only data; use Figma MCP search_design_system + mimic_map_components…
NameTypeReqDescription
_stopBuildbooleanTrue when the build must not proceed until the returned instructions are followed.
_userPromptstringPresent this to the user verbatim when a decision is required.
communityLibraryCheckRequiredboolean
completenessWarningsarray
enforcementobject
hintstring
phasenumber
phaseLabelstring

No examples provided.

mimic_ds_assets ~395

Manual escape hatch for DS discovery/preload/finalize — the low-level building blocks mimic_discover_ds already orchestrates automatically. Use this ONLY when the automatic flow needs a targeted redo: re-discovering one asset kind after a partial load, preloading variables/styles/fill-styles fetched some other way, or manually finalizing the enforcement profile. Params: action ("discover"|"preload"|"set_defaults"), kind ("styles"|"variables"|"components"|"fill_styles", required for discover/preload), plus action-specific params (fileKey for discover, styleKeys/variables/libraryFileKey for preload, dsMode for set_defaults). Workflow position: DS Discovery / Style Inventory (Phase 1-2), before building.

NameTypeReqDescription
actionstringyes"discover" fetches DS assets from a library file. "preload" caches assets you already have. "set_defaults" computes the enforcement profile and advances to Phase 2.
dsModestringDS enforcement mode for action="set_defaults". Defaults to strict when DS has tokens.
expectedCountnumberTotal number of styles/variables expected (from Figma MCP search results). Used to detect partial loads. Optional, for action="preload".
fileKeystringLibrary file key. Required for action="discover".
kindstringWhich DS asset kind. Required for "discover" (styles|variables|components) and "preload" (styles|variables|fill_styles). Not used by "set_defaults".
libraryFileKeystringLibrary file key to fetch fill styles from. Required for action="preload", kind="fill_styles".
styleKeysarrayText style keys to preload. Required for action="preload", kind="styles".
variablesarrayVariables to cache. Required for action="preload", kind="variables".

No output schema declared.

No examples provided.

mimic_generate_build_report ~195

Compiles the current build session into a structured report — DS component usage, primitives with justifications, DS changes/staleness, gap recommendations, binding-quality failures, efficiency (tool calls, cache hits, replay savings), and design-rule compliance. MANDATORY at the end of every build, before responding to the user — advances phase to 5 and resets per-build counters. No params.

NameTypeReqDescription
cacheHitsnumberNumber of cache hits during the build.
componentsarrayyesDS components used in the build. Include componentKey from figma_insert_component responses for reliable learning.
formatstringReport format. Defaults to markdown.
primitivesarrayyesPrimitives used (elements not found in DS).
screenNamestringyesName of the screen that was built.
toolCallCountnumberTotal tool calls in the build. Falls back to session count.
NameTypeReqDescription
bindingFailureCountnumber
componentQualityGatestring
componentUsagePercentnumber
dsChangesarray
recommendationsarray
reportPathstring
ruleViolationsarray
summarystringyesOne-line human-readable summary of the whole build.
unoverriddenTextCountnumber

No examples provided.

mimic_map_components ~229

Maps HTML element types (button, input, badge, table, tab, avatar, dropdown, textarea, header, footer, sidebar, ...) to DS component keys for the current build. Call once after mimic_discover_ds with all section-level + control element types. With FIGMA_TOKEN configured, one call is enough — all library components are pre-cached and missing types are confirmed gaps. Without a token, call again with librarySearchResults (from Figma MCP search_design_system) to close the loop. Workflow position: Phase 1-2, right after DS discovery, before figma_insert_component.

NameTypeReqDescription
elementTypesarrayyesList of HTML element types to map (e.g. ["button", "input", "badge", "table", "tab", "avatar", "dropdown", "textarea"]).
librarySearchResultsarrayComponent search results from Figma MCP search_design_system. Pass ALL results from your searches (any library — they will be filtered). This completes the search loop: matched components get cached,…
NameTypeReqDescription
componentsarray
hintstring
mappednumber
missingnumber
notFoundarray
searchCompleteboolean
selectedLibrarystring|null

No examples provided.

mimic_pipeline_resolve ~111

Classifies build input as a URL, local file path, or raw HTML string and returns the resolved content ready for building. Use FIRST when the user gives you a link, a file path, or ambiguous input instead of raw HTML — it tells you what you actually received. Params: input (string, required). Workflow position: before mimic_discover_ds, at the very start of a build.

NameTypeReqDescription
inputstringyesA URL, file path, or raw HTML string to classify and resolve.

No output schema declared.

No examples provided.

mimic_status ~100

START EVERY SESSION HERE. Returns Figma plugin connection status, the current build phase (0=idle through 5=report), enforcement profile, cached DS counts, knowledge store summary (learned components/patterns/gaps/rules), and a contextual `hint` telling you exactly what to call next. Also clears build-interrupt state after a plugin reconnect and warns if a completed build is missing its mandatory report. No params — call with no arguments.

Input schema present but exposes no named parameters.

NameTypeReqDescription
cacheHitsnumber
dsCacheobject
hintstringyesWhat to call next.
knowledgeobject
phasenumberyes0=idle, 1=discovery, 2=inventory, 3=build, 4=qa, 5=report.
phaseLabelstring
pluginConnectedbooleanyes
toolCallCountnumber

No examples provided.