add_switch_on_enum_node
Add a Switch-on-Enum flow control node to a Blueprint, creating one output pin per enum value to route execution based on the selected enum.
Instructions
Add a 'Switch on [EnumType]' flow control node.
Routes execution based on an enum value - creates one output pin per enum value.
Args: blueprint_name: Blueprint name enum_type: Enum class name (e.g., "EWeaponType", "EMovementState") node_position: Optional [X, Y] graph position
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_switch_on_enum_node(blueprint_name="/Game/MCP_Test/BP_Example", enum_type=1)
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>",
"enum_type": "<enum_type>"
},
"name": "add_switch_on_enum_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enum_type | Yes | ||
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |