get_constraints
Retrieve layout constraints and design guardrails from a Penpot file to prevent layout overflow and brand inconsistency before UI generation.
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) |