add_custom_function
Add custom functions to Unreal Engine Blueprints with configurable parameters and return values to implement reusable logic in automated authoring workflows.
Instructions
Add a custom function to a Blueprint.
Functions have their own local variable scope, can return values, and are reusable across the Blueprint.
Args: blueprint_name: Blueprint name function_name: Function name inputs: List of input params [{"name": "DamageIn", "type": "Float"}] outputs: List of output params [{"name": "HealthOut", "type": "Float"}] is_pure: Pure functions have no exec pin (like math functions)
KB: see knowledge_base/02_BLUEPRINT_COMMUNICATION.md#overview Example: add_custom_function(blueprint_name="/Game/MCP_Test/BP_Example", function_name="ExampleName")
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 |