runtime_reload
Hot-reload changed GDScript files into a running game, preserving state. Refuses to load scripts with compile errors, disabling them to keep the game running.
Instructions
Hot-reload changed scripts into a running game, keeping its state. Refuses when the language server reports errors in them: a script that fails to compile is disabled in the running game. Covers .gd scripts only - edited .tscn files and new or changed assets need a restart.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "runtime_reload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Scripts to reload | |
| session_id | No | Session from runtime_run. Required only when several games run. |