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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>"
},
"name": "figma_validate_ds_compliance"
}
}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. |