bp_auto_format_graph
Automatically arranges Blueprint graph nodes into a clean left-to-right execution layout using topological sort. Places data nodes below exec nodes and stacks disconnected chains; layout is undoable.
Instructions
Auto-arrange nodes in a Blueprint graph into a clean left-to-right layout.
Performs a topological sort of node execution order, then repositions nodes so execution flows left-to-right with consistent spacing. Data/reference nodes are placed below their consuming exec nodes.
This uses exec_python_transactional so the layout is undoable.
Layout rules:
Execution chain nodes are spaced x_spacing apart horizontally
Pure/getter nodes are placed below exec chain at y_spacing offset
Events (no exec-in) are anchored at start_x, start_y
Multiple disconnected chains are stacked vertically
Args: blueprint_name: Blueprint asset name graph_name: Graph to format. Default 'EventGraph' x_spacing: Horizontal spacing between exec nodes (default 350) y_spacing: Vertical spacing for data nodes (default 150) start_x: X position of first node (default -400) start_y: Y starting position (default 0)
Returns: JSON string with StructuredResult. outputs.nodes_repositioned — count of nodes moved outputs.layout_summary — list of {node_id, title, new_x, new_y}
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: bp_auto_format_graph(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_x | No | ||
| start_y | No | ||
| x_spacing | No | ||
| y_spacing | No | ||
| graph_name | No | EventGraph | |
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |