Get Moonvy layer tree
moonvy_get_treeExtract a nested design layer tree with exact CSS styles from a Moonvy project. Limit depth and node count to keep context compact for UI implementation.
Instructions
Return the nested design layer tree. Styles include exact UI values and CSS. Limit depth and node count to keep model context compact.
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": {
"url": "<url>"
},
"name": "moonvy_get_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Moonvy URL, normally /project/:projectId/:dirId/:fileId | |
| frameId | No | Optional Moonvy/Figma-style frame ID | |
| maxDepth | No | ||
| maxNodes | No | ||
| withStyle | No | ||
| includeHidden | No |