get_constraints
Retrieve layout constraints and design guardrails for a Penpot file, including spacing scale, color tokens, typography scale, and must-follow rules. Use before generating UI to prevent layout overflow and ensure brand consistency.
Instructions
Get layout constraints and design guardrails for a Penpot file. Returns spacing scale, color tokens, typography scale, and MUST/MUST NOT rules. Call this BEFORE generating any UI to avoid layout overflow and brand inconsistency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Penpot file ID | |
| pageId | No | Specific page ID (optional, defaults to all) |