widget_add_child
Add a child widget to a Widget Blueprint tree with support for UMG classes like CanvasPanel or TextBlock, and optional parent attachment for UI layout.
Instructions
Add a child widget to a Widget Blueprint tree.
Args:
widget_blueprint_path: Full Widget Blueprint asset path, e.g.
/Game/UI/WBP_HUD or /Game/UI/WBP_HUD.WBP_HUD.
child_class: Supported UMG class name such as CanvasPanel,
TextBlock, Image, ProgressBar, Button, HorizontalBox,
VerticalBox, Overlay, or SizeBox.
child_name: Name for the new child widget.
parent_name: Optional panel widget to attach under. If omitted, the
child becomes the root when no root exists, or attaches to the
root when the root is a panel.
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: widget_add_child(widget_blueprint_path="/Game/MCP_Test/BP_Example", child_class="Actor", child_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_blueprint_path": "<widget_blueprint_path>",
"child_class": "<child_class>",
"child_name": "<child_name>"
},
"name": "widget_add_child"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| child_name | Yes | ||
| child_class | Yes | ||
| parent_name | No | ||
| widget_blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |