script_create
Create new GDScript files in Godot by writing source content to .gd paths, with overwrite support and automatic project refresh.
Instructions
Create a new GDScript source file (.gd) on disk.
Writes content to a .gd file in the project. Overwrites if it exists.
Triggers a filesystem scan. New files include data.cleanup.rm
listing the .gd + .gd.uid sidecar; overwrite omits it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | res:// path (e.g. "res://scripts/player.gd"). | |
| content | No | GDScript source. Empty creates a blank file. | |
| session_id | No | Optional Godot session to target. Empty = active session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||