connect_pcg_nodes
Connects two PCG graph nodes by adding a directed edge from an output pin to an input pin and re-saves the graph. Use to wire PCG node connections.
Instructions
Connects two PCG nodes by adding a directed edge from an output pin to an input pin. Node names come from get_pcg_graph_info; the implicit graph endpoints are addressable as "Input"/"Output". from_pin/to_pin default to the node's "Out"/"In" pin (else its first pin); the resolved labels are echoed in the response. Idempotent: an existing edge reports already_connected without error. The graph is re-saved after a new edge is added.
Returns: { graph_name: string, asset_path: string, from_node: string, from_pin: string, to_node: string, to_pin: string, already_connected: bool, connected: bool, edge_count: int, saved: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_pin | No | Optional input-pin label on to_node (default the node's "In" pin, else its first input pin). | |
| to_node | Yes | Downstream node: a node_name, or the token "Output" for the graph's implicit output node. | |
| from_pin | No | Optional output-pin label on from_node (default the node's "Out" pin, else its first output pin). | |
| from_node | Yes | Upstream node: a node_name from get_pcg_graph_info, or the token "Input" for the graph's implicit input node. | |
| pcg_graph_path | Yes | Asset path of the PCG Graph (e.g. "/Game/PCG/PCG_Example" or fully-qualified "/Game/PCG/PCG_Example.PCG_Example"). |