Scenes
sceneCreate, open, save, and inspect Godot .tscn scene files. Manage node trees, instance subscenes, and pack branches, with edits auto-saved after every call.
Instructions
Create, open, save and inspect scene files (.tscn). The edited scene is the target of the node/signal tools. Edits are auto-saved after every call.
Actions:
create: {path, root_type='Node2D', root_name?, inherits?: 'res://base.tscn', props?, script?, open?=true, set_main?} new scene file (becomes main scene if none is set).
open: {path} open in the editor and make it the edited scene.
current: {} the edited scene and all open scenes.
tree: {scene?, path?, depth?, props?, expand_instances?} node tree of the edited (or any) scene. props=true adds non-default property values.
list: {path?} every scene in the project with its root type.
instance: {scene_path, parent?='.', name?, props?} add an instance of another scene (e.g. enemy.tscn) as a child.
pack_branch: {path, save_path} save a node subtree as its own reusable scene and replace it with an instance.
save: {path?} save (or 'save as' with path).
save_all: {} save every open scene.
close: {path?, save?=true}
reload: {path?} reload from disk.
source: {path?} raw .tscn text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Node name. | |
| path | No | res:// scene path (or node path for pack_branch). | |
| depth | No | Max tree depth. | |
| props | No | Property map. Values are coerced to the property type: numbers, [x,y], 'Vector2(1,2)', '#ff8800', 'res://file', {"type":"RectangleShape2D","size":[32,32]} for new resources, enum names as strings. | |
| scene | No | res:// scene to operate on; opened in the editor if needed. Defaults to the currently edited scene. | |
| action | Yes | What to do. See the tool description for each action's parameters. | |
| parent | No | Parent node path. | |
| root_name | No | Root node name (default: from file name). | |
| root_type | No | Root node class, global class_name, or res://script.gd. | |
| save_path | No | Where to save the packed branch. | |
| scene_path | No | Scene to instance. |