set_node_groups
Replace all groups of a node with a new set of group names. Specify the node path and the list of groups to assign.
Instructions
Set the groups a node belongs to (replaces existing groups)
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": {
"path": "<path>",
"groups": "<groups>"
},
"name": "set_node_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Node path in the scene tree (e.g. 'Player/Sprite2D'). Use just the node name for root-level children (e.g. 'Player'), or empty string '' for the scene root itself. Paths are relative to the currently open scene. | |
| groups | Yes | List of group names |