create_metasound_source
Create or idempotently load a UMetaSoundSource asset in Unreal Engine, build its source graph, and save it as a /Game asset for headless audio workflows.
Instructions
Creates (or loads, idempotently) a UMetaSoundSource asset and saves it. Uses UMetaSoundBuilderSubsystem::CreateSourceBuilder to build a source graph (pre-populated with the source interface: OnPlay input + audio output +, for one-shots, OnFinished output), then UMetaSoundEditorSubsystem::BuildToAsset to persist it as a real /Game asset (headless-safe; no modal picker).
Returns: { source_name: string, asset_path: string, created: bool, already_exists: bool, saved: bool, output_format: string, class_name: string, input_count: number, output_count: number, save_error: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the MetaSound Source asset to create. | |
| package_path | No | Target /Game package path (optional, default "/Game/MetaSounds") | |
| output_format | No | Output audio format: "mono", "stereo", "quad", "5.1", or "7.1" (optional, default "mono") |