attach_script
Attach an existing .gd script to a node in a Godot scene. Specify the project, scene, node, and script paths to bind the script to the node.
Instructions
Attach an existing script to a node in a scene
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Path to the scene file | |
| nodePath | Yes | Path to the node | |
| scriptPath | Yes | Path to the .gd script (relative to project) |