design_token_extract
Extract design tokens like colors and spacing from CSS, SCSS, Tailwind, JSON, or Figma source code to standardize your design system.
Instructions
Extract design tokens from existing code.
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": {
"source": "<source>"
},
"name": "design_token_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source code to parse. | |
| source_format | No | Format hint (css|scss|tailwind|json|figma). | css |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |