create_usd_stage
Creates a new USD stage on disk or in memory and registers it by stage name for later reference and editing. Omit file_path for a memory-only stage.
Instructions
Create a new USD stage (either on-disk or in-memory). When file_path is provided, UnrealUSDWrapper::NewStage(FilePath) creates a root layer file at that path and opens it as a stage. When file_path is omitted or empty, NewStage() (no args) creates a memory-only stage — this is the only way to author a USD stage that is NOT persisted to disk; the only way to clean it up is close_usd_stage. The new stage is always added to the LLM-facing UEAgent::UsdRegistry::GStageNameCache under stage_name (default "Untitled"), so subsequent calls can refer to it by name. The returned identifier is the root layer's USD identifier (real path for on-disk; an anonymous "anon:0x..." handle for memory stages).
Returns: { stage_name: string, file_path: string, memory: bool, identifier: string, real_path: string, dirty: bool, is_valid: bool, errors: [string]? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Absolute path for the new USD root layer file (.usd/.usda/.usdc/.usdz). Omit or empty for a memory-only stage (optional). | |
| stage_name | No | LLM-facing name to register the new stage under (optional, default "Untitled"). |