metasound_add_node_by_classname
Instantiates a real DSP node in a MetaSound Source graph by registered class name, returning its GUID and pins so agents can wire a signal patch headless and save the asset.
Instructions
Add a real process node to a MetaSound Source graph by its registered class name (e.g. UE/Sine/Audio). Unlike add_metasound_graph_input (which adds a graph input node), this instantiates a DSP node so you can author a real signal patch headless. Returns the node's GUID (node_id) and its enumerated input/output pins (name + data_type) for follow-up set/connect calls. The asset is saved. NOT idempotent: each call adds a new node instance (delete + recreate the source for a clean run).
Returns: { asset_path: string, node_id: string, class_namespace: string, class_name: string, class_variant: string, inputs: [{name,data_type}], outputs: [{name,data_type}], added: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_name | Yes | Registered node class name, e.g. "Sine". | |
| class_variant | No | Optional class variant, e.g. "Audio" (omit for the default/no-variant class). | |
| major_version | No | Optional major version (default 1). | |
| metasound_path | Yes | Asset path of the MetaSound Source. | |
| class_namespace | Yes | Registered node class namespace, e.g. "UE". |