getPageStructure
Retrieve the complete hierarchical structure of a Sketch page, including all node details like position and size, to analyze design layouts efficiently.
Instructions
Get complete hierarchical structure of a page with all node information
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": {
"pageId": "<pageId>"
},
"name": "getPageStructure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The ID of the page | |
| includeDetails | No | Whether to include detailed node information (position, size, etc.) | |
| maxDepth | No | Maximum depth of hierarchy to return |