add_widget
Adds a widget like TextBlock or Button to a Widget Blueprint designer tree, placing it under a specified parent panel with optional slot and widget properties.
Instructions
Add a new widget to a Widget Blueprint's Designer tree.
Args: widget_class: Short name like "TextBlock", "Image", "Button", "CanvasPanel", "VerticalBox", "HorizontalBox", "Overlay", "SizeBox", "Border", "ScrollBox", "ProgressBar", etc. parent_widget_name: Name of the parent panel (e.g. "CanvasPanel_0") widget_name: Optional name (auto-generated if empty) index: Insert position among siblings (-1 = append) slot_properties: Canvas anchors, offsets, etc. widget_properties: Widget values like {"Text": "Hello"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| widget_name | No | ||
| widget_class | Yes | ||
| slot_properties | No | ||
| widget_properties | No | ||
| parent_widget_name | Yes | ||
| widget_blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |