close_usd_stage
Closes a USD stage by stage_name, releasing its memory stage and removing it from the UEAgent USD registry cache to free memory.
Instructions
Close a USD stage by its LLM-facing stage_name. Removes the stage from the LLM-facing UEAgent::UsdRegistry::GStageNameCache AND calls UnrealUSDWrapper::EraseStageFromCache on it — this is the ONLY way to release a memory stage (memory stages are never closed automatically, even on editor shutdown). If stage_name is not in the cache the call returns success with a note rather than an error (idempotent — closing an already-closed stage is a no-op). The 'removed_from_cache' field reports whether the stage was actually present in the UnrealUSDWrapper stage cache at close time.
Returns: { stage_name: string, closed: bool, was_in_cache: bool, removed_from_cache: bool, note: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage_name | Yes | Name the stage was registered under via open_usd_stage or create_usd_stage. |