bp_add_node
Add any Blueprint node type to a graph and receive a stable node_id for subsequent pin connections and node inspection.
Instructions
Add a node to a Blueprint graph and return its stable node_id.
This is the primary node-creation tool. It wraps the existing add_blueprint_event_node, add_blueprint_function_node, add_print_string_node, add_blueprint_branch_node, etc. behind a unified interface, and returns a structured result with the node_id for use in bp_connect_pins and bp_inspect_node.
node_type values (case-insensitive): event: — Event node (BeginPlay, Tick, Hit, etc.) function:: — Function call node print_string — PrintString node branch — Branch (if/else) node sequence — Sequence node variable_get: — Variable GET node variable_set: — Variable SET node delay — Delay node cast: — DynamicCast node macro: — Macro node (DoOnce, FlipFlop, Gate, etc.) math: — Math node (+, -, *, /, %, ==, !=, <, >, &&, ||) custom_event: — Custom Event node
node_params (optional dict): For function nodes: {"target_class": "Actor", "function_name": "SetActorHiddenInGame"} For event nodes: {"event_name": "BeginPlay"} For cast nodes: {"target_class": "MyCharacter"}
Returns: JSON string with StructuredResult. outputs.node_id — stable GUID to use in bp_connect_pins outputs.node_name — short object name (K2Node_...) outputs.node_type — confirmed type string outputs.pos_x, outputs.pos_y — node canvas position
Args: blueprint_name: Blueprint asset name node_type: Node type string (see above) graph_name: Target graph. Default 'EventGraph' node_params: Optional dict of extra params for the node type position_x: Canvas X position position_y: Canvas Y position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: bp_add_node()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_type | No | ||
| event_name | No | ||
| graph_name | No | EventGraph | |
| node_class | No | ||
| position_x | No | ||
| position_y | No | ||
| node_params | No | ||
| target_class | No | ||
| custom_params | No | ||
| function_name | No | ||
| variable_name | No | ||
| blueprint_name | No | ||
| blueprint_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |