add_array_variable
Add an array variable to an Unreal Engine Blueprint, specifying the element type and optional editor exposure for organized data storage.
Instructions
Add an Array variable to a Blueprint.
Arrays are ordered, indexed lists of elements of the same type.
Args: blueprint_name: Blueprint name variable_name: Variable name element_type: Element type (Boolean, Integer, Float, String, Vector, etc.) is_exposed: Expose to editor Details panel
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_array_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", element_type="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>",
"variable_name": "<variable_name>",
"element_type": "<element_type>"
},
"name": "add_array_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_exposed | No | ||
| element_type | Yes | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |