add_to_group
Add a node to one or more groups in a Godot scene by specifying the project path, scene path, node path, and group names.
Instructions
Add a node to one or more groups in a scene
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": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"nodePath": "<nodePath>",
"groups": "<groups>"
},
"name": "add_to_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | Array of group names to add the node to | |
| nodePath | Yes | Path to the node (e.g., 'root/Player') | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory |