game_serialize_state
game_serialize_stateSave a Godot node tree's state to JSON for game persistence, or load JSON to restore a previously saved state. Supports configurable serialization depth.
Instructions
Save or load node tree state as JSON
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | State data to restore (for load) | |
| action | No | Action: save or load. Default: save | |
| maxDepth | No | Max tree depth to serialize. Default: 5 | |
| nodePath | No | Root node path. Default: "/root" |