load_sprite
Load a texture into a Sprite2D node within a Godot game project by specifying the project directory, scene file, node path, and texture file. Facilitates asset management and scene updates programmatically.
Instructions
Load a sprite into a Sprite2D node
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| nodePath | Yes | Path to the Sprite2D node (e.g., "root/Player/Sprite2D") | |
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| texturePath | Yes | Path to the texture file (relative to project) | 
Input Schema (JSON Schema)
{
  "properties": {
    "nodePath": {
      "description": "Path to the Sprite2D node (e.g., \"root/Player/Sprite2D\")",
      "type": "string"
    },
    "projectPath": {
      "description": "Path to the Godot project directory",
      "type": "string"
    },
    "scenePath": {
      "description": "Path to the scene file (relative to project)",
      "type": "string"
    },
    "texturePath": {
      "description": "Path to the texture file (relative to project)",
      "type": "string"
    }
  },
  "required": [
    "projectPath",
    "scenePath",
    "nodePath",
    "texturePath"
  ],
  "type": "object"
}