attach_script
Attaches a GDScript file to a specific node within a Godot scene. Provide project, scene, node, and script paths to link the script.
Instructions
Attach a GDScript to a scene node (headless)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePath | Yes | Path to the node within the scene (e.g., "root/Player") | |
| scenePath | Yes | Scene file path (relative to project) | |
| scriptPath | Yes | Path to the .gd script file (relative to project) | |
| projectPath | Yes | Godot project path |