scripts
Create, read, update, and delete GDScript files in Godot projects. Attach them to scene nodes, list project files, and generate templates with custom base classes.
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 | |
| content | No | Script content (for create/write) | |
| extends | No | Base class for create (default: Node) | |
| node_name | No | Target node name (for attach) | |
| scene_path | No | Scene file path (for attach) | |
| script_path | No | Path to GDScript file | |
| project_path | No | Path to Godot project directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||