Create script
script_createCreate a GDScript file in a Godot project, optionally attaching it to a scene node. Supply code for a full script, or omit content for a stub.
Instructions
Write a new GDScript file, optionally attaching it to a node in a scene in the same step. Provide content for real code; omit it for a stub.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Script path, e.g. "res://player/player.gd". | |
| content | No | Full file contents. Omit for a minimal stub. | |
| extends | No | Base class for the generated stub. Ignored when content is given. | Node |
| project | No | Godot project folder (the one with project.godot). Optional if the server was started with --project. | |
| overwrite | No | ||
| class_name | No | Optional global class_name for the stub. | |
| attach_to_node | No | Node within that scene. | . |
| attach_to_scene | No | Scene to attach the new script to. |