bp_add_for_loop_with_break_node
Add a For Loop with Break node to a Blueprint graph to create loop logic with an early exit condition. Specify the Blueprint, graph, first and last index, and optional node position.
Instructions
Add a ForLoopWithBreak macro node to a Blueprint graph.
Pins include execute, First Index, Last Index, Loop Body, Index, Break, and Completed. Use this when generated loop logic needs an early exit path instead of a fixed ForLoop.
Args: blueprint_name: Blueprint asset name or path. graph_name: Graph to mutate. Default EventGraph. first_index: Starting index default value. last_index: Ending index default value. node_position: Optional [X, Y] graph position.
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: bp_add_for_loop_with_break_node(blueprint_name="/Game/MCP_Test/BP_Example", graph_name="EventGraph", first_index=0, last_index=9)
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": "bp_add_for_loop_with_break_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | No | EventGraph | |
| last_index | No | ||
| first_index | No | ||
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |