figma_diff_tokens
Compare Figma styles against code tokens to detect design-system drift, reporting matched, changed, Figma-only, and code-only values.
Instructions
Compare Figma styles vs provided tokens. Provide figmaStyles data (from official Figma MCP's use_figma or REST API). Reports drift: figmaOnly, codeOnly, changed, matched. No FIGMA_ACCESS_TOKEN needed.
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": {
"figmaStyles": "<figmaStyles>"
},
"name": "figma_diff_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fonts | No | Typography tokens from your code to compare | |
| colors | No | Color tokens from your code to compare | |
| effects | No | Effect tokens from your code to compare | |
| figmaUrl | No | Figma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session. | |
| figmaStyles | Yes | Figma style data to compare against. Get this from the official Figma MCP or REST API. |