attach_script
Attach an existing GDScript file to a specific node in a Godot scene by providing project, scene, node, and script paths.
Instructions
Attach an existing GDScript to a node in a scene
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodePath | Yes | Node path like root/Player | |
| scenePath | Yes | Scene file relative to project | |
| scriptPath | Yes | Script path relative to project, e.g. scripts/player.gd | |
| projectPath | Yes | Path to the Godot project directory |