get_design_context
Extract brand context from Penpot files to understand design tokens, components, and layout constraints before generating UI.
Instructions
Extract compressed brand context from a Penpot file. Returns design tokens, components, pages, and layout constraints in a token-efficient format. Use this FIRST to understand the design system before generating any UI.
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_design_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Penpot file ID to extract brand context from | |
| format | No | Output format: 'compact' for LLM-optimized text, 'json' for structured data | compact |