open_usd_stage
Open an existing USD stage from a file path with caching and force-reload controls. Returns a stage_id for unique reference across follow-up commands.
Instructions
Open an existing USD stage from a file path. Wraps UnrealUSDWrapper::OpenStage with caching and force-reload controls. When use_stage_cache is true (default) and the file is already open in the UnrealUSDWrapper stage cache, the existing stage is returned. When force_reload is true, all local layers are forced-reloaded from disk (useful when the file was modified by another tool since the last open). The opened stage is added to the LLM-facing UEAgent::UsdRegistry::GStageNameCache under either the explicit stage_name or a derived one (basename without extension). The stage_id returned is the root layer's USD identifier — a stable string handle useful as a unique reference across follow-up commands.
Returns: { stage_name: string, stage_id: string, identifier: string, real_path: string, from_cache: bool, file_path: string, errors: [string]? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .usd/.usda/.usdc/.usdz file (or a USD layer identifier). | |
| stage_name | No | LLM-facing name to register the opened stage under. Defaults to the file basename without extension (optional). | |
| force_reload | No | Force-reload all local layers from disk, bypassing the layer registry (default false). | |
| use_stage_cache | No | Use UnrealUSDWrapper's stage cache (default true). When false the stage is re-read and not added to the cache. | |
| initial_load_set | No | "LoadAll" (default; loads payloads) or "LoadNone" (faster; inspect without loading payloads). |