getDocumentStructure
Obtain the complete page and node hierarchy from a Sketch file, with options to limit depth, include specific fields, or group similar nodes for concise representation.
Instructions
Get complete document structure with all pages and their hierarchies
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getDocumentStructure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeDetails | No | Whether to include detailed node information | |
| maxNodesPerPage | No | Maximum number of nodes to return per page | |
| fields | No | Specific fields to include in response (e.g., ["id", "name", "type"]) | |
| excludeFields | No | Fields to exclude from response (e.g., ["style", "position"]) | |
| summaryMode | No | Return summary with statistics instead of full structure | |
| maxDepth | No | Maximum depth of hierarchy to return | |
| groupSimilar | No | Group similar nodes to reduce data size |