add_blueprint_function_node
Add a function-call node to a Blueprint graph by specifying function name, target class, parameters, and position. Returns node details, preventing duplicates when needed.
Instructions
Add a function-call node to a Blueprint graph.
function_name can be: • Short name: 'K2_GetActorLocation', 'SetActorLocation', 'PrintString' • Full UE path: '/Script/Engine.Actor:K2_GetActorLocation'
target (optional) identifies the class that owns the function: • Short name: 'KismetMathLibrary', 'KismetSystemLibrary', 'GameplayStatics', 'Actor', 'Character' • Full path: '/Script/Engine.KismetMathLibrary' • Leave empty to search the Blueprint's own class hierarchy.
Duplicate guard: by default (allow_duplicates=False) if a node with the same function name already exists within 32 units of node_position, the existing node is returned instead of creating a new one. Set allow_duplicates=True to force creation of a new node regardless.
params values can be strings, numbers, or booleans — all are handled.
Returns node_id, node_name, pins, and was_existing (True if the duplicate guard returned an existing node).
Args: blueprint_name: Asset name. function_name: Function to call (short name or full path). target: Class that owns the function (optional). graph_name: Graph to add node to. Default 'EventGraph'. params: Dict of pin_name -> default_value to set inline. node_position: Optional [X, Y] canvas position. allow_duplicates: Force new node even if one already exists nearby.
Returns: Dict with 'node_id', 'node_name', 'pins', 'was_existing'.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_blueprint_function_node(blueprint_name="/Game/MCP_Test/BP_Example", function_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| target | No | ||
| graph_name | No | EventGraph | |
| function_name | Yes | ||
| node_position | No | ||
| blueprint_name | Yes | ||
| allow_duplicates | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |