attach_script
attach_scriptAttach a GDScript to a specific node in a Godot scene programmatically, enabling headless script assignment for automated workflows.
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 |