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.
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>",
"pageId": "<pageId>"
},
"name": "get_page_layout"
}
}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 |