add_blueprint_for_each_loop_node
Insert a ForEachLoop macro node into a Blueprint graph to iterate over an array, exposing each element and its index for processing.
Instructions
Add a ForEachLoop macro node to a Blueprint graph.
Pins: execute, Array (wildcard array), Loop Body (exec), Array Element (wildcard), Array Index (int), Completed (exec).
Args: blueprint_name: Asset name of the Blueprint. graph_name: Graph to add to. Default 'EventGraph'. node_position: Optional [X, Y] canvas position.
Returns: Dict with 'node_id', 'node_name', 'node_type', and 'pins'.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_blueprint_for_each_loop_node(blueprint_name="/Game/MCP_Test/BP_Example")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint_name": "<blueprint_name>"
},
"name": "add_blueprint_for_each_loop_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | No | EventGraph | |
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |