add_resource
Add a resource like material or texture to a Godot node property, specifying node path and resource type with optional property overrides.
Instructions
Add a resource (material, texture, etc.) to a node property
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": {
"node_path": "<node_path>",
"resource_type": "<resource_type>"
},
"name": "add_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | Node to add resource to (e.g. 'Player' or 'Player/Cube') | |
| properties | No | Optional property key-value pairs | |
| resource_type | Yes | Resource type (e.g. 'Material', 'Texture2D') |