reset_python_state
Clears all user-defined names from Unreal Editor's Python globals dict, preserving names starting with '_'. Reset script state without restarting.
Instructions
Clear all user-defined names from UE Python's public (shared-with-console) globals dict. Pairs with exec_python_persistent: lets Claude wipe accumulated state and start fresh without restarting the editor. Names starting with '_' (Python dunders + conventional private) are preserved. Imports the user explicitly added (e.g. 'import unreal') ARE cleared -- re-import in the next exec_python_persistent call.
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": "reset_python_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||