Set group parent
set_group_parentMove an element into a group (or out to root). Refuses to place a group inside its own descendants.
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": {
"elementId": "<elementId>",
"parentGroupId": "<parentGroupId>",
"projectId": "<projectId>"
},
"name": "set_group_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | 0-based insert position among the new parent's children. Defaults to end. | |
| elementId | Yes | Full element id: video.<id>, image.<id>, shapes.<id>, or group.<id>. | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. | |
| parentGroupId | Yes | Bare group id of the new parent, or null to move to root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the call succeeded. | |
| data | No | The payload, shaped by the tool. | |
| note | No | What to do next when not ready. | |
| error | No | Why it failed. | |
| status | No | For cache-backed readers: whether the answer was ready. | |
| editorUrl | No | Opens this project in the editor. |