figma_check_design_parity
Compare a Figma component's design specs with code-side data to identify discrepancies, score parity, and return actionable design and code fixes.
Instructions
Compare a Figma component's design specs against code-side data to find discrepancies. Returns a parity score, categorized discrepancies, and actionable fix items for both design-side (Figma tool calls) and code-side (file edits). Read the component source code first, then pass the data in codeSpec.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enrich | No | Enable token coverage and enrichment analysis. Default: true | |
| nodeId | Yes | Component node ID (e.g., '695:313') | |
| fileUrl | No | Figma file URL. Uses current URL if omitted. | |
| codeSpec | Yes | Structured code-side component data. Read the component source code first, then fill in the relevant sections. | |
| canonicalSource | No | Which source is the canonical truth. Fixes will target the other side. Default: 'design' | design |