Set a sprite texture
load_spriteAssign an image texture to a Sprite2D, Sprite3D, or TextureRect node in a Godot scene and save the updated scene.
Instructions
Set the texture of a Sprite2D, Sprite3D or TextureRect node in a scene and save it.
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": {
"scenePath": "<scenePath>",
"nodePath": "<nodePath>",
"texturePath": "<texturePath>"
},
"name": "load_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePath | Yes | The node, e.g. "root/Sprite2D". | |
| scenePath | Yes | The scene, e.g. "res://player.tscn". | |
| projectPath | No | Folder containing project.godot. Optional: defaults to the project Claude Code is running in. | |
| texturePath | Yes | The image, e.g. "res://art/player.png". |