save_scene
Re-pack and save a Godot scene, overwriting the original or saving to a different path. Use for save-as or re-canonicalizing 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. Returns a plain-text confirmation naming the save path. 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 |