get_tokens
Extract design tokens like colors, typography, and spacing from a Penpot file to get structured token data for code generation.
Instructions
Extract design tokens (colors, typography, spacing) from a Penpot file. Returns structured token data for use in code generation.
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": {
"fileId": "<fileId>"
},
"name": "get_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Penpot file ID | |
| category | No | Token category to extract | all |