Set parent
cavalry_set_parentParent a layer under another layer or group; use a null parentId to unparent it and move the layer to the top level.
Instructions
Parent a layer under another layer (e.g. a group), or pass parentId null to un-parent it.
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": {
"layerId": "<layerId>",
"parentId": "<parentId>"
},
"name": "cavalry_set_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. | |
| parentId | Yes | New parent layer id, or null to move to the top level. |