add_blueprint_function_with_pins
Create or update a Blueprint function with typed input and output pins, enabling reusable gameplay logic in Unreal Engine.
Instructions
Create or update a Blueprint function graph with typed signature pins.
Use this when an agent needs a reusable gameplay function, not a call node in an existing graph. Each pin entry supports name, type, and an optional sub_type for object/class-backed pins.
Args: blueprint_name: Asset name of the Blueprint. function_name: Function graph to create or update. inputs: Function input pins, e.g. [{"name": "Amount", "type": "float"}]. outputs: Function output pins, e.g. [{"name": "Success", "type": "bool"}]. is_pure: Whether to mark the function as pure when supported.
Returns: Dict with graph_name, entry_node_id, result_node_id, inputs, and outputs.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#function-signature-authoring Example: add_blueprint_function_with_pins( blueprint_name="/Game/MCP_Test/BP_Example", function_name="ComputeDamage", inputs=[{"name": "BaseDamage", "type": "float"}], outputs=[{"name": "FinalDamage", "type": "float"}], )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | ||
| is_pure | No | ||
| outputs | No | ||
| function_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |