game_spawn_node
Create a Godot node at runtime by specifying its class type, parent path, and properties. Use this tool to dynamically add any node type to the scene tree during gameplay.
Instructions
Create a new node of any type at runtime
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": {
"type": "<type>"
},
"name": "game_spawn_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new node. Default: auto-generated | |
| type | Yes | Node class name (e.g. "Sprite2D", "CharacterBody3D") | |
| parentPath | No | Parent node path. Default: "/root" | |
| properties | No | Properties to set on the new node |