game_serialize_state
Serialize a Godot node tree's state as JSON to save or restore game progress.
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" |