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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||