attach_script
Attach a GDScript to a given node in a Godot scene. Requires project, scene, node path, and script path to add custom behavior.
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 |