add_named_slot_to_widget
Add a Named Slot placeholder to a Widget Blueprint, enabling child widget content injection for reusable container widgets.
Instructions
Add a Named Slot placeholder to a Widget Blueprint.
Named Slots allow child widget content injection when the widget is used as a parent. Essential for reusable frame/container widgets.
Args: widget_name: Widget Blueprint name slot_name: Named slot identifier position: [X, Y] position size: [Width, Height]
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_named_slot_to_widget(widget_name="/Game/MCP_Test/WBP_Example", slot_name="ExampleName")
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": {
"widget_name": "<widget_name>",
"slot_name": "<slot_name>"
},
"name": "add_named_slot_to_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| position | No | ||
| slot_name | Yes | ||
| widget_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |