Extract Design Tokens
extract_design_tokensConvert document colors, typography, and spacing into design tokens for CSS, JSON, or Tailwind, optionally saving to a file.
Instructions
Extract colors, typography, and spacing from the document as design tokens in CSS custom properties, JSON, or Tailwind format
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_design_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format | css |
| output_path | No | File path to save the output (e.g. "/path/to/tokens.json"). If omitted, returns text only. |