Mimic AI
v3.0.1Builds 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.
| Parameter | Type | Description |
|---|---|---|
fileKey * | string | Figma file key to discover DS from. |
communitySearchResults | array | Unique 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… |
communitySearchVariableKeys | object | Map 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. |
externalVariables | array | Variables 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. |
identityDriftChoice | string | Answer 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… |
libraryFileKey | string | Library file key (alphanumeric string from the Figma URL of the library file). Prompted once per library, cached permanently. |
libraryKey | string | Library key to use when multiple DS libraries are available. Returned from a previous call that detected multiple libraries. |
skipRestApi | boolean | Skip 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…
| Parameter | Type | Description |
|---|---|---|
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. |
dsMode | string | DS enforcement mode for action="set_defaults". Defaults to strict when DS has tokens. |
expectedCount | number | Total number of styles/variables expected (from Figma MCP search results). Used to detect partial loads. Optional, for action="preload". |
fileKey | string | Library file key. Required for action="discover". |
kind | string | Which DS asset kind. Required for "discover" (styles|variables|components) and "preload" (styles|variables|fill_styles). Not used by "set_defaults". |
libraryFileKey | string | Library file key to fetch fill styles from. Required for action="preload", kind="fill_styles". |
styleKeys | array | Text style keys to preload. Required for action="preload", kind="styles". |
variables | array | Variables 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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Which cache to list. |
category | string | Optional category filter. Only used with kind="variables" (text, background, border, foreground, spacing, radius). Omit for all. |
filter | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
elementTypes * | array | List of HTML element types to map (e.g. ["button", "input", "badge", "table", "tab", "avatar", "dropdown", "textarea"]). |
librarySearchResults | array | Component 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+.
| Parameter | Type | Description |
|---|---|---|
name * | string | Semantic name describing the HTML role (e.g., "Header Section", "Metrics Row", "Card: Revenue"). Never use generic names like "Frame". |
clipsContent | boolean | Clip content to frame bounds. |
confirmedNoComponent | boolean | Set true only after DS/library search confirms no component exists for this role. |
cornerRadius | number | Raw corner radius in pixels. Use cornerRadiusVariable when DS has radius variables. |
cornerRadiusVariable | string | DS variable path for corner radius. |
counterAxisAlignItems | string | Counter axis alignment. |
direction | string | Auto-layout direction. Prefer HORIZONTAL or VERTICAL — NONE breaks portability. Use layoutPositioning ABSOLUTE for overlay children instead. |
fill | string | Raw hex color for background fill (e.g. "#ffffff"). Fallback when no DS styles/variables. |
fillStyleId | string | DS fill style key for background (from figma_list_ds (kind: "fill_styles")). Preferred over fillVariable when DS has fill styles but no variables. |
fillVariable | string | DS variable path for background fill. |
gap | number | Raw item spacing in pixels. Use gapVariable when DS has spacing variables. |
gapVariable | string | DS variable path for item spacing. |
gridColumnCount | number | Number of grid columns. Only used when layoutMode is GRID. |
gridColumnGap | number | Raw column gap in pixels. Only used when layoutMode is GRID. |
gridColumnGapVariable | string | DS spacing variable path for GRID column gap. |
gridColumnSpan | number | When this frame is a child of a GRID-layoutMode parent, how many columns it should span. |
gridRowCount | number | Number of grid rows. Only used when layoutMode is GRID. |
gridRowGap | number | Raw row gap in pixels. Only used when layoutMode is GRID. |
gridRowGapVariable | string | DS spacing variable path for GRID row gap. |
gridRowSpan | number | When this frame is a child of a GRID-layoutMode parent, how many rows it should span. |
height | number | Fixed height in pixels. |
layoutMode | string | Set 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… |
layoutPositioning | string | Set 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. |
layoutSizingHorizontal | string | Horizontal sizing mode. |
layoutSizingVertical | string | Vertical sizing mode. |
maxWidth | number | Max width constraint. |
padding | number | Raw uniform padding in pixels. Use paddingVariable when DS has spacing variables. |
paddingBottom | number | Raw bottom padding in pixels. |
paddingBottomVariable | string | DS variable path for bottom padding. |
paddingLeft | number | Raw left padding in pixels. |
paddingLeftVariable | string | DS variable path for left padding. |
paddingRight | number | Raw right padding in pixels. |
paddingRightVariable | string | DS variable path for right padding. |
paddingTop | number | Raw top padding in pixels. |
paddingTopVariable | string | DS variable path for top padding. |
paddingVariable | string | DS variable path for uniform padding. |
parentId | string | Parent node ID. Omit for page-level. |
primaryAxisAlignItems | string | Primary axis alignment. |
primitiveOverrideReason | string | Required with confirmedNoComponent for component-like primitives. Explain why this frame must be custom. |
stroke | string | Raw hex color for stroke (e.g. "#e4e6ee"). Fallback when no DS stroke variables. |
strokeVariable | string | DS variable path for stroke color. |
strokeWeight | number | Stroke weight in pixels. |
width | number | Fixed width in pixels. |
x | number | X position in pixels. Required for page-level artboards. Use rightmost existing artboard x + width + 80. |
y | number | Y 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+.
| Parameter | Type | Description |
|---|---|---|
content * | string | Text content. |
parentId * | string | Parent node ID. |
fillStyleId | string | DS fill style key for text color (from figma_list_ds (kind: "fill_styles")). Preferred over fillVariable when DS has fill styles but no variables. |
fillVariable | string | DS variable path for text color. |
fontSizeVariable | string | DS variable path for font size (if no text style). |
layoutPositioning | string | Set to ABSOLUTE to overlay this text inside an auto-layout parent. |
layoutSizingHorizontal | string | Horizontal sizing mode. |
lineHeightVariable | string | DS variable path for line height. |
name | string | Semantic name describing the HTML element role (e.g., "Page Title", "Card: Revenue Label", "Subtitle"). Never use generic names like "Text". |
textAlignHorizontal | string | Text alignment. |
textStyleId | string | DS text style — accepts style name (e.g. "Text sm/Semibold") or style key. Names are resolved to keys automatically. |
width | number | Fixed 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.
| Parameter | Type | Description |
|---|---|---|
parentId * | string | Parent node ID. |
shape * | string | Which primitive to create. |
arcData | object | Arc data for donut/pie segments. Ellipse only. |
cornerRadius | number | Raw corner radius in pixels. Rectangle only. |
cornerRadiusVariable | string | DS variable path for corner radius. Rectangle only. |
fill | string | Raw hex color for fill (e.g. "#e4e6ee"). Fallback when no DS styles/variables. Rectangle only. |
fillStyleId | string | DS fill style key (from figma_list_ds kind="fill_styles"). Rectangle only. |
fillVariable | string | DS variable path for fill color. |
height | number | Height in pixels. |
layoutPositioning | string | Set to ABSOLUTE to overlay this shape inside an auto-layout parent (e.g., grid lines behind bars). Rectangle only. |
layoutSizingHorizontal | string | Horizontal sizing mode. Auto-defaults to FIXED when width is specified. Rectangle only. |
layoutSizingVertical | string | Vertical sizing mode. Auto-defaults to FIXED when height is specified. Rectangle only. |
name | string | Node name. |
stroke | string | Raw hex color for stroke. Fallback when no DS stroke variables. Rectangle only. |
strokeVariable | string | DS variable path for stroke color. Rectangle only. |
strokeWeight | number | Stroke weight in pixels. Rectangle only. |
width | number | Width 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.
| Parameter | Type | Description |
|---|---|---|
parentId * | string | Parent node ID. |
svgString * | string | SVG markup string. |
fillVariable | string | DS variable path for fill override (applied to ALL child vectors uniformly). |
layoutSizingHorizontal | string | Horizontal sizing mode. Use FILL for charts inside auto-layout containers so they stretch to the container width. |
layoutSizingVertical | string | Vertical sizing mode. |
name | string | Node name. |
strokeVariable | string | DS 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…
| Parameter | Type | Description |
|---|---|---|
componentKey * | string | Component key from the DS library. |
parentId * | string | Parent node ID to insert into. |
applyRecipe | boolean | Set to false to skip auto-applying confirmed recipe defaults. Defaults to true. |
importMode | string | Optional import hint. Usually inferred from DS discovery cache. |
name | string | Instance 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Component instance node ID. |
overrides * | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Component instance node ID. |
properties * | object | Variant 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.
| Parameter | Type | Description |
|---|---|---|
newComponentKey * | string | New component key to swap/replace to. |
nodeId * | string | Instance node ID. |
mode | string | "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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Instance node ID that owns the slot. |
slotName * | string | SLOT property name from configurationHints.slotProperties. |
action | string | "fill" inserts a component into the slot (default). "reset" restores default content. |
componentKey | string | DS 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…
| Parameter | Type | Description |
|---|---|---|
op * | string | Which mutation to perform. |
content | string | New text content. op="text". |
cornerRadiusVariable | string | DS variable for corner radius. op="restyle". |
counterAxisAlignItems | string | op="layout". |
fill | Raw color as hex string ("#3b36f2") or RGB object. op="fill" fallback when no DS styles/variables available. | |
fillStyleId | string | DS fill style key (from figma_list_ds). op="fill". Priority: fillStyleId → fillVariable → fill. |
fillVariable | string | DS variable path for fill color. op="fill" or "restyle". |
gapVariable | string | DS variable for item spacing. op="layout" or "restyle". |
height | number | Fixed height. op="layout". |
index | number | Insert index within the new parent. op="move". Omit for end. |
layoutSizingHorizontal | string | op="layout". |
layoutSizingVertical | string | op="layout". |
maxWidth | number | Max width constraint. op="layout". |
nodeId | string | Target node ID. Required for every op except "page". |
paddingBottomVariable | string | op="layout". |
paddingLeftVariable | string | op="layout". |
paddingRightVariable | string | op="layout". |
paddingTopVariable | string | op="layout". |
paddingVariable | string | DS variable for uniform padding. op="layout" or "restyle". |
pageId | string | Page ID to switch to. op="page". Takes precedence over pageName. |
pageName | string | Page name to switch to. op="page". |
parentId | string | New parent node ID. op="move". |
primaryAxisAlignItems | string | op="layout". |
strokeVariable | string | DS variable for stroke color. op="restyle". |
strokeWeight | number | Stroke weight. op="restyle". |
textStyleId | string | DS text style key. op="text_style". |
visible | boolean | True to show, false to hide. op="visibility". |
width | number | Fixed width. op="layout". |
x | number | Absolute x position. op="position". |
y | number | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
modeIndex * | number | Mode index. 0 = default/light, 1 = dark (if available). |
nodeId * | string | Node ID (typically the artboard). |
collectionName | string | Optional — 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node 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).
| Parameter | Type | Description |
|---|---|---|
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… |
componentSetKey | string | Component set key. Required for target="variants". |
depth | number | How many levels deep to traverse. Only used with target="children". Default 1. |
nodeId | string | Node ID to inspect. Required for target: node, children, parent, text. |
sectionName | string | The 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).
| Parameter | Type | Description |
|---|---|---|
format | string | "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).
| Parameter | Type | Description |
|---|---|---|
data * | object | The entry data to store. |
id * | string | Unique identifier for the entry. |
type * | string | Type 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.
| Parameter | Type | Description |
|---|---|---|
components * | array | DS components used in the build. Include componentKey from figma_insert_component responses for reliable learning. |
primitives * | array | Primitives used (elements not found in DS). |
screenName * | string | Name of the screen that was built. |
cacheHits | number | Number of cache hits during the build. |
format | string | Report format. Defaults to markdown. |
toolCallCount | number | Total 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).
| Parameter | Type | Description |
|---|---|---|
chartType * | string | The type of chart to compute. |
data * | array | Chart data points. Shape depends on chartType. |
dimensions * | object | Chart 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).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
input * | string | A 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+.
| Parameter | Type | Description |
|---|---|---|
columns * | array | Column definitions. Each column becomes a vertical frame with a header cell + data cells. |
parentId * | string | Parent node ID to insert the table body into. |
rows * | array | Row 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. |
cellHeight | number | Fixed 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). |
dataCellKey | string | Component key for Table cell. If omitted, auto-resolved from DS cache/knowledge store. |
firstColumnPaddingLeft | string | DS 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… |
headerCellKey | string | Component key for Table header cell. If omitted, auto-resolved from DS cache/knowledge store. |
headerVariant | object | Variant overrides for all header cells (e.g. {"Checkbox": "False"}). Applied to every header. |
lastColumnPaddingRight | string | DS 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+.
| Parameter | Type | Description |
|---|---|---|
chartType * | string | The type of chart to build. |
data * | array | Chart 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 * | object | Chart dimensions. Bar: {chartHeight, chartWidth?}. Donut: {outerRadius, innerRadius}. Line: {plotWidth, plotHeight}. Radar: {radius}. Optional for bar/line: yPrefix, ySuffix. |
parentId * | string | Parent node ID to insert the chart into. |
title * | string | Chart card title text. |
colors | array | DS color variable paths for data elements. Falls back to DS cache palette or default. |
gridColor | string | DS variable path for grid lines. Falls back to DS cache border/secondary match. |
labelColor | string | DS variable path for axis label text color. Falls back to DS cache text/tertiary match. |
labelStyle | string | DS text style name for axis labels. Falls back to smallest text style in DS cache. |
seriesNames | array | Legend labels for multi-series charts (e.g. ["Current", "Target"]). For donut charts, legend is auto-generated from data labels. |
titleColor | string | DS variable path for title text color. Falls back to DS cache text/primary match. |
titleStyle | string | DS text style name for chart title. Falls back to DS cache sm/Semibold match. |