connect_pins
Wire an output pin to an input pin inside a Blueprint graph with K2 type checking, returning an error for incompatible pairs instead of a silent no-op.
Instructions
Wire one node's OUTPUT pin to another node's INPUT pin inside one Blueprint graph, type-checked by the K2 schema (an incompatible pair is returned as an error, never a silent no-op). Nodes are addressed by NodeGuid, pins by name. Either node that still carries a WILDCARD pin is reconstructed afterwards, so array / ForEach / Select pins really re-type instead of compiling into "The type of Target Array is undetermined" (which compile_blueprint reports as compiled:true). Use validate_pin_connection to test a pair without mutating, and build_blueprint_graph to create+wire in one transaction.
Returns: { connected, source_node_id, target_node_id } -- connected is always true when the call succeeds; the failure path is an error response, so there is no false to check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Optional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk. | |
| graph_name | No | Target graph name; defaults to the Blueprint's event graph when omitted. BOTH nodes must live in this same graph. | |
| source_pin | Yes | Output pin name on the source node (e.g. "then", "ReturnValue"). An output pin of that name is preferred; any pin with the name is accepted as a fallback. | |
| target_pin | Yes | Input pin name on the target node (e.g. "execute", "Condition"). | |
| blueprint_name | No | Blueprint name or path. | |
| blueprint_path | No | Alias of `blueprint_name` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `blueprint_name`. | |
| source_node_id | Yes | NodeGuid of the source node (from add_graph_node / get_graph_nodes). | |
| target_node_id | Yes | NodeGuid of the target node. |