add_group
Add a group container to the buffer with optional position. Nested children are automatically assigned IDs and positions within the group's grid.
Instructions
Add a group container to the buffer (auto-placed unless position given). Nested children are normalized like add_control: each gets an id and an auto-placed position in the group's own grid.
Args: group_json: A group object, e.g. {"label":"Lights","grid":{"columns":2,"rows":2},"children":[...]}. tab_index: Which tab to add to. position: Optional [row, col].
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": {
"group_json": "<group_json>"
},
"name": "add_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| tab_index | No | ||
| group_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |