load_sprite
Load texture resources into Sprite2D or TextureRect nodes within Godot 4 scenes to display images and graphics in game development projects.
Instructions
Load a texture resource into a Sprite2D (or TextureRect) node.
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>",
"texturePath": "<texturePath>"
},
"name": "load_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene file path | |
| nodePath | Yes | Path to the Sprite2D node | |
| texturePath | Yes | Texture path (res://assets/player.png) |