scripts
Manage GDScript files in Godot projects: create, read, write, attach to scene nodes, list, and delete scripts.
Instructions
GDScript file CRUD.
Actions (required params -> optional):
create (script_path -> extends="Node", content, project_path): generate template
read (script_path -> project_path)
write (script_path, content -> project_path): replace entire file
attach (script_path, scene_path, node_name -> project_path): link to scene node
list (-> project_path)
delete (script_path -> project_path)
script_path: relative to project root (e.g., "scripts/player.gd").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| project_path | No | Path to Godot project directory | |
| script_path | No | Path to GDScript file | |
| extends | No | Base class for create (default: Node) | |
| content | No | Script content (for create/write) | |
| scene_path | No | Scene file path (for attach) | |
| node_name | No | Target node name (for attach) |