figma_ds_extract_component
Extracts one inventory component for design-system porting, returning source, import closure, prop contract, usage variants, style touchpoints, and a CSF3 story scaffold.
Instructions
Deep-extract ONE component from the inventory for porting into the design system: returns its source (capped), local import closure (relative imports to follow), prop contract, observed call-site variants, vendor classification, style touchpoints (classNames, CSS-module imports, custom properties referenced), and a ready-to-adapt CSF3 story scaffold with variant stories inferred from real usage. The agent then ports the component into /src/components// and records progress with figma_ds_status. Local Mode only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outDir | Yes | The outDir used in figma_ds_analyze (manifest is read from it). | |
| component | Yes | Component name from the inventory (see figma_ds_analyze topByUsage, or the analysis manifest for the full list). |