game_serialize_state
Save or load a Godot node tree's state as JSON, with configurable root path and depth, to persist and restore scene structure for inspection or debugging.
Instructions
Save or load node tree state as JSON
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "game_serialize_state"
}
}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" |