Mimic AI

v3.0.1
io.github.miapre/mimic-ai Checked 1 hour ago Published 4 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mimic_status

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.

mimic_discover_ds

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.

ParameterTypeDescription
fileKey *stringFigma file key to discover DS from.
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-null…
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.
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 b…
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…

mimic_ds_assets

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 pr…

ParameterTypeDescription
action *string"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".

figma_list_ds

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.

ParameterTypeDescription
kind *stringWhich cache to list.
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").

mimic_map_components

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.

ParameterTypeDescription
elementTypes *arrayList 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…

figma_create_frame

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+.

ParameterTypeDescription
name *stringSemantic name describing the HTML role (e.g., "Header Section", "Metrics Row", "Card: Revenue"). Never use generic names like "Frame".
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 layoutMode…
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.
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.

figma_create_text

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+.

ParameterTypeDescription
content *stringText content.
parentId *stringParent node ID.
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".
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.

figma_create_shape

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.

ParameterTypeDescription
parentId *stringParent node ID.
shape *stringWhich primitive to create.
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.
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.

figma_create_svg

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.

ParameterTypeDescription
parentId *stringParent node ID.
svgString *stringSVG markup string.
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.
strokeVariablestringDS variable path for stroke override.

figma_insert_component

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 an…

ParameterTypeDescription
componentKey *stringComponent key from the DS library.
parentId *stringParent node ID to insert into.
applyRecipebooleanSet to false to skip auto-applying confirmed recipe defaults. Defaults to true.
importModestringOptional import hint. Usually inferred from DS discovery cache.
namestringInstance name override.

figma_component_text

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.

ParameterTypeDescription
nodeId *stringComponent instance node ID.
overrides *arrayArray of text overrides to apply. Each item needs textNodeName or textNodeId, plus content.

figma_set_variant

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.

ParameterTypeDescription
nodeId *stringComponent instance node ID.
properties *objectVariant property key-value pairs (e.g. { "Size": "Large", "State": "Default" }).

figma_swap_main_component

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.

ParameterTypeDescription
newComponentKey *stringNew component key to swap/replace to.
nodeId *stringInstance node ID.
modestring"swap" preserves overrides (default). "replace" creates a fresh instance at the same position.

figma_manage_slot

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.

ParameterTypeDescription
nodeId *stringInstance node ID that owns the slot.
slotName *stringSLOT property name from configurationHints.slotProperties.
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".

figma_update_node

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…

ParameterTypeDescription
op *stringWhich mutation to perform.
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".
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".

figma_variable_modes

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.

ParameterTypeDescription
modeIndex *numberMode index. 0 = default/light, 1 = dark (if available).
nodeId *stringNode ID (typically the artboard).
collectionNamestringOptional — variable collection name. Omit to set the mode on ALL collections at once (recommended).

figma_delete_node

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.

ParameterTypeDescription
nodeId *stringNode ID to delete. Must NOT be a top-level artboard.

figma_inspect

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).

ParameterTypeDescription
target *string"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 selected…
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".

mimic_ai_knowledge_read

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).

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

mimic_ai_knowledge_write

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).

ParameterTypeDescription
data *objectThe entry data to store.
id *stringUnique identifier for the entry.
type *stringType 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).

mimic_generate_build_report

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.

ParameterTypeDescription
components *arrayDS components used in the build. Include componentKey from figma_insert_component responses for reliable learning.
primitives *arrayPrimitives used (elements not found in DS).
screenName *stringName of the screen that was built.
cacheHitsnumberNumber of cache hits during the build.
formatstringReport format. Defaults to markdown.
toolCallCountnumberTotal tool calls in the build. Falls back to session count.

mimic_compute_chart

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).

ParameterTypeDescription
chartType *stringThe type of chart to compute.
data *arrayChart data points. Shape depends on chartType.
dimensions *objectChart dimensions. Keys depend on chartType: chartHeight + optional chartWidth (bar), outerRadius/innerRadius (donut), plotWidth/plotHeight (line/scatter), radius/cx/cy (radar), cellWidth/cellHeight (h…

figma_validate_ds_compliance

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).

ParameterTypeDescription
nodeId *stringThe Figma node ID to validate.

mimic_pipeline_resolve

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.

ParameterTypeDescription
input *stringA URL, file path, or raw HTML string to classify and resolve.

mimic_build_table

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+.

ParameterTypeDescription
columns *arrayColumn definitions. Each column becomes a vertical frame with a header cell + data cells.
parentId *stringParent node ID to insert the table body into.
rows *arrayRow data as arrays of strings. Each inner array has one value per column. Use "|" to separate text and supporting text (e.g. "Sarah Chen|sarah@company.com"). Array length must match columns length.
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).
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 pad…
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 pad…

mimic_build_chart

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+.

ParameterTypeDescription
chartType *stringThe type of chart to build.
data *arrayChart 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.
dimensions *objectChart dimensions. Bar: {chartHeight, chartWidth?}. Donut: {outerRadius, innerRadius}. Line: {plotWidth, plotHeight}. Radar: {radius}. Optional for bar/line: yPrefix, ySuffix.
parentId *stringParent node ID to insert the chart into.
title *stringChart card title text.
colorsarrayDS color variable paths for data elements. Falls back to DS cache palette or default.
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.
seriesNamesarrayLegend labels for multi-series charts (e.g. ["Current", "Target"]). For donut charts, legend is auto-generated from data labels.
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.