figma_validate_screen
Validate a Figma screen against design-system discipline criteria. Returns a compliance score across instance coverage, token binding, and auto-layout coverage to identify non-compliant screens.
Instructions
Validate a screen against design-system discipline criteria. Returns a compliance score (0-100) across 3 dimensions: instance coverage (library usage), token binding coverage (bound variables), and auto-layout coverage. Use this AFTER creating a screen to verify DS compliance. If score < minScore, Claude should delete the screen and rebuild it using DS components + token bindings. v1.9.4: breakdown now always includes coverage (granular fills/paddings/radius/itemSpacing/textStyle bind ratios) + overflow (root auto-layout overflow). For hardcoded samples + primitive fallback list, use figma_scan_ds_compliance instead. Read-only — never mutates the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figmaUrl | No | Figma file URL for routing. | |
| fileKey | No | Target a specific connected file. | |
| nodeId | Yes | Node ID of the screen to validate | |
| expectedDs | No | Expected DS library name (e.g. '❖ SUI') for library match scoring | |
| minScore | No | Minimum acceptable score (0-100). Below this, the screen is considered non-compliant. |