disconnect_pcg_nodes
Removes a directed edge between two PCG node pins in an Unreal PCG Graph and re-saves the asset. Reports already_disconnected if no such edge exists.
Instructions
Removes the directed edge between two PCG nodes' pins. Pin labels default to the node's "Out"/"In" pin (else its first pin) and the resolved labels are echoed. Idempotent: if no such edge exists it reports already_disconnected without error. The graph is re-saved after an edge is removed.
Returns: { graph_name: string, asset_path: string, from_node: string, from_pin: string, to_node: string, to_pin: string, already_disconnected: bool, removed: bool, disconnected: 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 name, or the token "Output". | |
| 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 name, or the token "Input". | |
| pcg_graph_path | Yes | Asset path of the PCG Graph (e.g. "/Game/PCG/PCG_Example"). |