load_sprite
Load a texture onto a Sprite2D or TextureRect node in a Godot scene by providing project, scene, node, and texture paths.
Instructions
Load a texture onto a Sprite2D/TextureRect node inside a scene.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to project. node_path: Path to the Sprite2D node (e.g. 'root/Player/Sprite2D'). texture_path: Texture path relative to project.
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"node_path": "<node_path>",
"texture_path": "<texture_path>"
},
"name": "load_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | ||
| scene_path | Yes | ||
| project_path | Yes | ||
| texture_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |