get_page_layout
Get the spatial structure of a Penpot page as a compact tree, revealing frame hierarchy, layout types, gaps, and sizing to plan creation or modification.
Instructions
Get the layout structure of a Penpot page as a compact tree. Shows frame hierarchy, layout types (flex/grid), gaps, and sizing. Use to understand spatial structure before creating or modifying elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Max nesting depth to include (default: 2, max: 5) | |
| fileId | Yes | Penpot file ID | |
| pageId | Yes | Page ID to inspect |