get_page_layout
Retrieve the layout structure of a Penpot page as a compact tree, showing frame hierarchy, layout types, gaps, and sizing to understand spatial structure before creating or modifying elements.
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 |