save_scene
Save a scene to its original file or to a new path for save-as. Use to persist edits or re-canonicalize hand-edited .tscn files.
Instructions
Re-pack and save a scene, optionally to a different path (save-as). Most mutations (add_node, set_node_properties, delete_nodes, etc.) auto-save — only use this for save-as via newPath, or to re-canonicalize a hand-edited .tscn. Overwrites silently. Errors if the scene file does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path relative to the project | |
| newPath | No | Save to a different path (relative to project) instead of overwriting the original |