add_set_variable_node
Adds a Set Variable node in a Blueprint to assign a value to an existing variable, enabling programmatic updates within the graph.
Instructions
Add a 'Set [VariableName]' node to write to a variable.
Args: blueprint_name: Blueprint name variable_name: Variable to set (must exist in the Blueprint) node_position: Optional [X, Y] graph position
Returns: Dict with 'node_id'; has exec pins + value input pin
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_set_variable_node(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |