figma_validate_ds_compliance
Validates a Figma node against the design system profile, detecting hardcoded styles, missing variable bindings, and DS violations to ensure compliance before generating a report.
Instructions
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The Figma node ID to validate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | ||
| violations | No | Per-node compliance violations found. |