create_group
Group selected shapes in a tldraw file by reparenting them under a new group shape. Specify the file and shape IDs to organize your canvas.
Instructions
Group existing shapes into a new group. Reparents the given shape ids under a new group shape.
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": {
"file": "<file>",
"childIds": "<childIds>"
},
"name": "create_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .tldr file | |
| childIds | Yes | Shape ids to reparent into the new group |