mimic_map_components
Map HTML element types to design system component keys. Uses cached library data with Figma token, or integrates search results to confirm missing components.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elementTypes | Yes | List of HTML element types to map (e.g. ["button", "input", "badge", "table", "tab", "avatar", "dropdown", "textarea"]). | |
| librarySearchResults | No | 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, unmatched types get confirmed as "no component exists". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| mapped | No | ||
| missing | No | ||
| notFound | No | ||
| components | No | ||
| searchComplete | No | ||
| selectedLibrary | No |