backup_scene
Back up a Godot scene file before editing, storing timestamped copies in .scene_backups/. Use the returned path to restore if needed.
Instructions
[OPTION B - Part 1] Create a timestamped backup of a scene file (.tscn) BEFORE making edits. Stores backups in /.scene_backups/. Always call this before using batch_add_nodes, set_node_properties, or any destructive scene mutations. Returns the backup file path to use with restore_scene_backup if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene path relative to project (e.g. scenes/level.tscn) |