add_map_variable
Add a Map variable to a Blueprint to store key-value pairs with O(1) lookup by key. Specify key and value types, optionally expose to editor Details panel.
Instructions
Add a Map (dictionary) variable to a Blueprint.
Maps store key-value pairs with O(1) lookup by key.
Args: blueprint_name: Blueprint name variable_name: Variable name key_type: Key type (String, Name, Integer, etc.) value_type: Value type (Integer, Float, String, Vector, etc.) is_exposed: Expose to editor Details panel
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_map_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", key_type="ExampleName", value_type=0.0)
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>",
"key_type": "<key_type>",
"value_type": "<value_type>"
},
"name": "add_map_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_type | Yes | ||
| is_exposed | No | ||
| value_type | Yes | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |