Skip to content

UI

50 tools for UMG Widget Blueprints: widgets, slots, bindings, animations, viewmodels and CommonUI stacks, and widgets in PIE.

Back to the index.

add_list_view

Additive Idempotent Refused during PIE

Construct a list-type view -- a UListView, a UTileView (view_type=Tile) or a UTreeView (view_type=Tree) -- named list_view_name in the tree of a Widget Blueprint loaded by asset path, with EntryWidgetClass from entry_widget_class when given, under the panel parent_widget_name or else the root canvas or panel, then compile and save the Blueprint in one undo step. In an empty tree it becomes the root; a parent or root that is not a panel, or a full single-child panel, is an error. Idempotent by name: a view of the requested class already called list_view_name is left untouched (already_existed=true, widget_added=false, saved=false, a note, its own entry_widget_class), nothing compiled or saved; that name held by anything else is an error, and so is a missing Blueprint, an unknown view_type or a non-UUserWidget entry class. A failed save makes success false with saved=false and save_error, the edit kept in memory. Refused during PIE unless force=true. Authoring only: a tree view's items and their children are supplied at runtime; fill a list or tile view in PIE with set_pie_list_view_items. Inverse: remove_widget_from_blueprint.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint, e.g. "/Game/UI/WBP_Inventory"
list_view_name string yes FName of the new view widget in the tree; also the idempotency key
widget_name string no Alias of list_view_name, read only when list_view_name is absent
entry_widget_class string no Optional entry widget class for each row, tile or tree node (asset path such as "/Game/UI/WBP_ItemTile", or a /Script path)
view_type string no Optional "List" (default, UListView), "Tile" (UTileView) or "Tree" (UTreeView), case-insensitive; anything else is an error
parent_widget_name string no Optional name of an existing panel widget (UPanelWidget) in the tree to insert the new view under; omitted = the root canvas or panel (in an empty tree the view becomes the root)

Returns: { widget_blueprint_name, list_view_name, list_view_class, view_type, already_existed, entry_widget_class, parent_widget_name?, widget_added, saved, save_error?, note? }

add_viewmodel

Additive Idempotent Refused during PIE

Add a view-model context named context_name, of class view_model_class, to the MVVM view of a Widget Blueprint loaded by asset path, then compile and save the Blueprint, in one undo step. creation_type says how the widget gets its instance at runtime: CreateInstance by default, PropertyPath from source_property_path, GlobalViewModelCollection by global_identifier, or Manual (supplied at runtime, e.g. by set_viewmodel_field). Idempotent by context_name: a context of that name and class is kept as it is, answered with its own creation_type, already_existed=true, saved=false and a note, nothing changed, compiled or saved; one of another class is an error. A Blueprint without MVVM support fails with a note; a bad class or creation_type is an error; a failed save makes success false with saved=false and save_error, the edit kept in memory. Refused during PIE unless force=true. Undo it with remove_viewmodel; bind fields with bind_widget_to_viewmodel.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint asset, e.g. "/Game/UI/WBP_HUD".
view_model_class string yes View model class: asset path (/Game/...) or /Script/<Module>.<ClassName>
context_name string yes FName identifying this context (idempotency key)
creation_type string no Optional (default "CreateInstance"): one of "CreateInstance" | "PropertyPath" | "GlobalViewModelCollection" | "Manual" (EMVVMBlueprintViewModelContextCreationType).
source_property_path string no Optional: only used when creation_type="PropertyPath" (required in that case). Sets FMVVMBlueprintViewModelContext::ViewModelPropertyPath.
global_identifier string no Optional: only used when creation_type="GlobalViewModelCollection" (required in that case). Sets FMVVMBlueprintViewModelContext::GlobalViewModelIdentifier.

Returns: { widget_blueprint_name, view_model_class, context_name, creation_type, source_property_path?, global_identifier?, already_existed, view_model_count, has_mvvm_extension, saved, save_error?, note? }

add_widget_animation

Additive Idempotent Refused during PIE

Add a UWidgetAnimation called animation_name to a Widget Blueprint loaded by asset path, as the editor's New Animation button does: an inner UMovieScene at 20 fps with a 0 to 5 s playback range, the display label set to animation_name and the animation registered as a Blueprint variable, then compile and save the Blueprint. object_name can differ from animation_name when a stale object already holds that name. Idempotent: an animation whose object name or display label equals animation_name (ignoring case) is returned with added=false, already_existed=true and saved=false, nothing compiled or saved. A missing Blueprint is an error; a failed save makes success false with save_error, the animation kept in memory. Refused during PIE unless force=true. Animate it with add_widget_animation_track and add_widget_animation_keyframe; list: get_widget_animations; inverse: remove_widget_animation.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes name/display label for the new animation

Returns: { widget_bp_path: string, animation_name: string, object_name: string, display_name: string, added: bool, already_existed: bool, has_movie_scene: bool, animation_count: int, saved: bool, save_error?: string }

add_widget_animation_keyframe

Additive Refused during PIE

Add a keyframe to an existing widget-animation property track's section (call add_widget_animation_track first). Converts time_seconds to an FFrameNumber via the MovieScene's tick resolution, extends the section's range to cover the key if needed, then adds the key on the matching channel(s) via the requested interpolation (AddLinearKey | AddCubicKey | AddConstantKey for float/color's FMovieSceneFloatChannel(s); bool channels have no interpolation concept and always use UpdateOrAddKey). Read: get_widget_animation_tracks; inverse: remove_widget_animation_keyframe.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the target animation
widget_name string yes name of the animated widget
property_path string yes the SAME property_path used in add_widget_animation_track
time_seconds number yes time (seconds, >= 0) at which to place the key
value any yes key value: a number for float, a bool for bool, or a [R,G,B,A] (A optional, defaults 1.0) array for color
interpolation string no Optional "linear" (default) | "cubic" | "constant" (float/color only; ignored for bool)

Returns: { widget_bp_path: string, animation_name: string, widget_name: string, property_path: string, track_type: string, time_seconds: float, key_frame: int, keys_added: int, interpolation: string, saved: bool, save_error: string }

add_widget_animation_track

Additive Refused during PIE

Add (or reuse) a MovieScene property track for a widget's property inside a UWidgetAnimation: finds/creates a UMovieScenePossessable bound to the named widget (+ matching FWidgetAnimationBinding), resolves property_path to a top-level reflected property on the widget's class, and adds the matching typed track (UMovieSceneFloatTrack | UMovieSceneColorTrack | UMovieSceneBoolTrack) with a full-playback-range section. track_type="auto" infers from the property's reflected type (FFloatProperty/FDoubleProperty->float; FLinearColor or FSlateColor struct->color; FBoolProperty->bool). Call add_widget_animation_keyframe afterward to place keys. Single-level property_path only (not dotted sub-paths). Read: get_widget_animation_tracks; inverse: remove_widget_animation_track.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the target animation
widget_name string yes name of the widget (in the SAME WidgetBP's tree) to animate
property_path string yes name of a top-level reflected property on the widget's class (e.g. "RenderOpacity", "ColorAndOpacity")
track_type string no Optional "auto" (default) | "float" | "color" | "bool"

Returns: { widget_bp_path: string, animation_name: string, widget_name: string, property_path: string, track_type: string, possessable_guid: string, binding_reused: bool, track_class: string, track_reused: bool, section_class: string, section_created: bool, saved: bool, save_error: string }

add_widget_property_binding

Destructive Refused during PIE

Bind a widget PROPERTY to a function of the Widget Blueprint -- the Designer's "Bind" dropdown, headless. The property then recomputes every frame from that function instead of holding a fixed value (a health bar's Percent, a label's Text, a panel's Visibility). TWO RULES, both enforced by the ENGINE'S OWN validator (FDelegateEditorBinding::IsBindingValid, the same code the UMG compiler runs -- this tool does not second-guess it): the property is bindable only if its widget declares a companion delegate named "<Property>Delegate" (Text -> TextDelegate), and the function must have a COMPATIBLE SIGNATURE (same return type, NO parameters) and be PURE (BlueprintPure or const), because it is called while painting. A refusal names which of the two failed and, when the property is not bindable at all, lists the ones that are. Create the function first with add_blueprint_function + set its return type; one property can hold only ONE binding, so re-binding the same property REPLACES it (reported in replaced_existing).

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes Name of the widget in the tree whose property gets bound (must be a direct variable of the UserWidget)
property_name string yes Property to bind, e.g. "Text" on a TextBlock, "Percent" on a ProgressBar, "Visibility" on any widget. Must have a companion "<property_name>Delegate" on the widget's class.
function_name string yes Name of the function ON THIS Widget Blueprint that supplies the value. Must be pure and take no parameters, returning the property's type.
save boolean no Compile + save the Widget Blueprint when done (default true). The compile is what turns the editor binding into the runtime one, so a false here leaves the binding authored but not live.

Returns: { widget_bp_path: string, widget_name: string, property_name: string, function_name: string, bound: bool, valid: bool, replaced_existing: bool, member_guid: string, validation_messages: [string], bindable_properties?: [string], saved: bool, save_error: string }

add_widget_to_blueprint

Additive Idempotent Refused during PIE

Add a widget to the tree of a Widget Blueprint asset as the last child of the panel parent_name (default the root, which must then be a panel), register it as a variable, then compile and save the blueprint; no undo step. widget_type takes the curated palette of list_widget_types (TextBlock, Button, ProgressBar, Slider, ScrollBox...), any native widget class path, or a Widget Blueprint to nest, which must not contain this one. Idempotent by name: a widget already called widget_name with the same class is returned as is (already_existed true), and the blueprint is compiled and saved only when it has unsaved changes (otherwise saved=false, nothing saved); another class under that name, an unknown widget_type or a bad parent is an error. Refused while PIE runs unless force=true; a failed save is an error. Inspect: get_widget_blueprint_tree; inverse: remove_widget_from_blueprint (remove_widget is the runtime tool).

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_type string yes one of TextBlock, Button, Image, VerticalBox, CanvasPanel, ProgressBar, Slider, CheckBox, ComboBoxString, ScrollBox, Border, Overlay, SizeBox, WidgetSwitcher, HorizontalBox, EditableTextBox, Spacer, GridPanel, RichTextBlock, EditableText, MultiLineEditableText, ComboBox, SpinBox, ScaleBox, SafeZone, UniformGridPanel, WrapBox, MenuAnchor (the curated names; see list_widget_types), OR any other native widget class path (e.g. /Script/UMG.Throbber, /Script/UMG.ListView), OR a UserWidget-derived Widget Blueprint to embed as a nested instance, by its /Game asset path (e.g. /Game/UI/WBP_HealthBar) or generated-class path (/Game/UI/WBP_HealthBar.WBP_HealthBar_C)
widget_name string yes unique name for the new widget
parent_name string no Optional name of a panel widget to host the new child; defaults to the root widget.

Returns: { widget_bp_path: string, added_widget_name: string, widget_type: string, widget_class: string, parent_name: string, slot_class: string, added: bool, already_existed: bool, saved: bool, save_error: string, note: string? }

apply_widget_style_preset

Destructive Refused during PIE

Apply ONE block of style properties to EVERY widget of a Widget Blueprint that matches a filter, in a single pass with ONE compile + ONE save -- the multi-widget companion to set_widget_property's multi-path form. Selection is target_widgets (explicit names, wins over everything) OR target_class (matched with IsA, so subclasses count) AND/OR name_pattern (wildcard). At least one selector is required: to hit every widget in the tree say so explicitly with name_pattern="*". Every value goes through the same honest applier, so the per-widget report distinguishes what landed from what was ignored; dry_run=true resolves the match and reports it WITHOUT writing, which is the cheap way to check a filter before it touches 40 widgets.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
preset object no Dict of {"<property or dotted path>": <value>} applied to each matched widget, e.g. {"WidgetStyle.Normal.TintColor":"#1B1B1BFF"}. Optional when the source_* params are used; when both are given the inline values WIN, so you can say "the theme, but this one in red". A path that does not exist on a given matched widget lands in that widget's ignored[] instead of failing the whole call.
source_bp_path string no THEME MODE: /Game path of a Widget Blueprint holding a REFERENCE widget to copy the style from, instead of writing the values inline. This is what makes one widget the single source of truth rather than scattering the same colour across 40 calls.
source_widget_name string no Name of the reference widget inside source_bp_path. Required with source_bp_path.
source_property_paths array no Which paths to copy off the reference widget, e.g. ["WidgetStyle.Normal.TintColor","WidgetStyle.NormalPadding"]. A path that does not resolve on the REFERENCE is an error, not a silent skip: an incomplete theme that says nothing is worse than a refusal. Use audit_widget_style with the same reference + paths to find what has drifted before fixing it.
target_class string no Class filter matched with IsA: a curated name (Button, TextBlock), a native class path (/Script/UMG.Button) or a Widget Blueprint asset path. Subclasses match too.
name_pattern string no Wildcard on the widget's name (Btn_*, *_Title, or * for every widget). Combined with target_class as AND.
target_widgets array no Explicit widget names. When present, target_class and name_pattern are IGNORED and only these are touched (reported in selector_used).
dry_run boolean no Resolve the match and report it without writing anything (default false).
save boolean no Compile + save the Widget Blueprint when done (default true; a dry run never saves).

Returns: { widget_bp_path: string, selector_used: string, matched: [string], matched_count: int, dry_run: bool, results: [{widget_name, widget_class, applied, ignored, errors, failed_paths, applied_count, all_applied}], widgets_fully_applied: int, widgets_with_failures: int, saved: bool, save_error: string }

bind_widget_to_viewmodel

Destructive Refused during PIE

Add a binding to the MVVM view of a Widget Blueprint loaded by asset path, from a view-model property (source_path) to a widget property (destination_path), then compile and save the Blueprint in one undo step. Both paths are resolved by reflection, written through UMVVMEditorSubsystem as the MVVM editor does, and read back: a write that did not stick is rolled back and is an error, with nothing saved. Not idempotent: each call adds another binding. An unknown binding_mode, context, widget or property, or a path that is not Context.Property, is an error before anything changes; a Blueprint without MVVM support fails with a note. A failed save makes success false with saved=false and save_error, the binding kept in memory. Refused during PIE unless force=true. Add the context with add_viewmodel; inverse: unbind_widget_from_viewmodel.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint asset
source_path string yes "ViewModel.Property" (exactly one dot): ViewModel = an existing viewmodel context name (added via add_viewmodel), Property = a reflected property on that viewmodel's class. Multi-segment ("A.B.C") is NOT supported.
destination_path string yes "Widget.Property" (exactly one dot): Widget = a widget name in this Widget BP's WidgetTree, Property = a reflected property on that widget's class. Multi-segment is NOT supported.
binding_mode string no optional: "OneWay" (default), "TwoWay", "OneTime", "OneWayToSource"

Returns: { widget_blueprint_name, source_path, destination_path, binding_mode, created, binding_count, binding_id, source_path_verified, destination_path_verified, has_mvvm_extension, saved, save_error?, note? }

click_pie_widget

Destructive

Fire a LIVE UMG widget's event in the running PIE session (game thread): resolve a UWidget by name among the active viewport UserWidgets (reusing the list_pie_widgets walk) and BROADCAST its named BlueprintAssignable multicast delegate (default OnClicked). Unlike list_pie_widgets (read-only) this MUTATES runtime state -- it runs the exact bound handlers a real click would, including the client->server RPC path, so equip/inventory/craft UI flows can be driven headless instead of by a human (driving them via call_function bypasses that RPC path and yields false negatives). Errors clearly if no Play-In-Editor session is running or the widget/event is not found.

Parameter Type Required Description
widget_name string yes Required. Name of the target UWidget in the live tree (as reported by list_pie_widgets), e.g. "ConfirmButton". Matches a widget inside an active viewport UserWidget's WidgetTree, or a top-level UserWidget by its own name.
event string no Optional (default "OnClicked"): BlueprintAssignable multicast delegate to fire (e.g. "OnClicked", "OnPressed", "OnReleased").
child_name string no Optional: after resolving widget_name, drill into a descendant widget with this name (the resolved widget's own WidgetTree if it is a UserWidget, else a named child in its subtree) and fire the event on THAT widget instead.
player_index integer no Optional (default 0): when set, only consider viewport UserWidgets owned by the local player with this index (single-player PIE resolves globally).
world string no Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). In a 2-player PIE session EVERY client has its OWN widgets, so the default may well read the other player's HUD.

Returns: { success: bool, widget_name, resolved_widget, resolved_class, event, is_bound: bool, fired: bool, player_index, child_name?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number } -- is_bound is false when the delegate exists but has no bound handlers (broadcast is still a safe no-op).

create_common_ui_stack

Additive Idempotent Refused during PIE

Make a UCommonActivatableWidgetStack the root of the empty tree of a Widget Blueprint loaded by asset path, then compile and save the Blueprint in one undo step. root_class picks the UCommonActivatableWidgetStack subclass to construct; one that does not resolve, or is not such a subclass, falls back to the base class with root_class_resolved=false and root_class_note. The stack is named CommonActivatableWidgetStack, made unique when an object of the tree holds that name. Idempotent: a root that is already a stack is kept as it is (already_existed=true, root_changed=false, saved=false, a note), nothing compiled or saved. Any other root, or a missing Blueprint, is an error and nothing changes. A failed save makes success false with saved=false and save_error, the edit kept in memory. Refused during PIE unless force=true. Screens go on the stack at runtime: push_common_ui_widget and pop_common_ui_widget; read it with list_pie_widgets. Inverse: remove_widget_from_blueprint.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint
root_class string no Optional. Asset path (/Game/...) or /Script/<Module>.<ClassName> of a UCommonActivatableWidgetStack subclass. Omitted = base UCommonActivatableWidgetStack.

Returns: { widget_blueprint_name, root_class?, already_existed, stack_class, root_class_requested, root_class_resolved, root_class_note?, root_changed, root_widget, root_widget_class, saved, save_error?, note? }

create_menu_screen_widget

Additive Refused during PIE

Build a styled menu screen: create or reuse the Widget Blueprint at package_path/name with a centred panel, optional title and one button per entry bound to an event-graph OnClicked handler, then compile and save. Re-runs reuse widgets and bindings. Returns contrast_ratio_normal_text; the default colors pass audit_widget_accessibility. Layout is not measured (long labels can clip) and text is inline, not String Table.

Parameter Type Required Description
package_path string yes /Game folder for the new Widget Blueprint (e.g. /Game/MyGame/UI).
name string yes Asset name, e.g. WBP_OptionsMenu.
entries array yes REQUIRED, the buttons top to bottom. Each item is either a plain string (the label) or an object {label, handler_name?}. handler_name names the generated event-graph function; omitted, it becomes On<Label>Clicked. Order is preserved.
title string no Optional heading text above the buttons. Omitted or empty = no title widget at all (not an empty one).
parent_class string no Parent UUserWidget subclass (default "UUserWidget"). Pass a CommonUI activatable class here to scaffold a screen for a CommonUI stack.
background boolean no Draw the background panel (default true). false leaves the buttons floating on nothing -- which is what makes contrast unjudgeable, so it also drops contrast_ratio_normal_text from the payload.
panel_color string no Background panel colour. "#RRGGBBAA", [r,g,b,a] (LINEAR 0..1) or {R,G,B,A}. Default is a near-black panel.
button_color string no Button resting colour, same formats. If you override this, you own the contrast: the returned ratio tells you what you got.
text_color string no Label colour for title and buttons, same formats. Default white.
title_font_size number no Title text size in Slate font points, truncated to a whole number; default 36. Unused when title is empty.
button_font_size number no Button label size in Slate font points, truncated to a whole number; default 20. It also sets the contrast floor checked (3:1 at 18 or more, else 4.5:1); under 12 is what audit_widget_accessibility flags as small_text.
panel_width number no Panel width in pixels (default 480).
panel_height number no Panel height in pixels (default 560).
bind_events boolean no Wire each button's OnClicked to a handler in the event graph (default true). false builds the visuals only.
theme_source_bp string no Optional /Game path of a Widget Blueprint holding a reference Button whose style is copied onto every generated button INSTEAD of the built-in defaults (same idea as apply_widget_style_preset's theme mode: one widget is the single source of truth).
theme_source_widget string no Name of the reference Button inside theme_source_bp. Required with it.
save boolean no Compile + save when done (default true).

Returns: { widget_bp_path, asset_path, created, already_existed, root_widget, panel_widget, box_widget, title_widget, entries: [{label, button_widget, text_widget, handler_name, bound, already_bound, error}], entry_count, buttons_bound, colors: {panel, button, text}, contrast_ratio_normal_text, contrast_required, contrast_passes, contrast_note, theme_source, compiled, saved, save_error }

create_widget

Additive

Create a runtime UUserWidget instance of a concrete UserWidget class in a running PIE world (the default while PIE runs) or the editor world, owned by that world's first local PlayerController when there is one, and optionally AddToViewport it. Nothing is saved, and an unreferenced widget is garbage-collected. In the editor world add_to_viewport never adds (no PlayerController): read added_to_viewport. A taken name gets a unique variant, reported in widget_name; a class that does not load, is abstract or is not a UserWidget is an error. To change the asset use add_widget_to_blueprint; remove_widget searches the same worlds.

Parameter Type Required Description
widget_class_path string yes Full path to widget class, e.g. '/Game/UI/MyWidget.MyWidget_C'
widget_name string yes Name to assign to the created widget instance (a name another widget already has gets a unique variant, which widget_name in the response reports)
add_to_viewport boolean no If true, AddToViewport the widget (optional, default false). It only ever really adds when the target world has a local PlayerController -- check added_to_viewport in the response, and see target_world for when that is possible at all.
target_world string no Optional: "editor" | "pie" | "server" (the PIE world with authority) | "client" | "pie:N" | "game" (alias of "pie"). Defaults to "pie" when a Play-In-Editor session is running, else "editor". IMPORTANT: "editor" NEVER has a PlayerController, because GEditor's world is not a game world, so add_to_viewport can never really add there -- that is reported honestly (added_to_viewport stays false), never simulated. "pie" resolves the running PIE world and its first local PlayerController, so add_to_viewport there performs a REAL AddToViewport().

Returns: { widget_name: string, widget_class_path: string, widget_class_name: string, target_world: string, added_to_viewport: bool, add_to_viewport_note?: string, widget_valid: bool, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

create_widget_blueprint

Additive Idempotent Refused during PIE

Create a UWidgetBlueprint at package_path/name with the editor Widget Blueprint factory, parented to parent_class (a class path such as /Game/UI/WBP_Base.WBP_Base_C, or a short class name), give it a CanvasPanel root named RootCanvas when the factory made no root, then compile and save it. Idempotent by path: a Widget Blueprint already there is returned untouched (created=false, already_existed=true, saved=false), nothing compiled or saved; that reply gives the parent_class it really has, with a note when it is not the requested one. A parent that is not a UUserWidget subclass, an invalid path, or another kind of asset at that path is an error. A failed save makes success false with save_error and keeps the new asset in memory. Refused during PIE unless force=true. Then add widgets with add_widget_to_blueprint and read the tree with get_widget_blueprint_tree; an Editor Utility Widget is create_editor_utility_widget_blueprint.

Parameter Type Required Description
package_path string yes /Game folder to create the asset in (e.g. /Game/UI)
name string yes Asset name (no extension), e.g. "WBP_MainMenu"; with package_path it gives the asset path.
parent_class string no Parent UUserWidget subclass (default "UUserWidget").

Returns: { name: string, package_path: string, asset_path: string, parent_class: string, created: bool, already_existed: bool, root_created?: bool, root_widget: string, root_widget_class: string, saved: bool, save_error?: string, note?: string }

duplicate_widget

Additive Refused during PIE

Duplicate a widget (DuplicateObject<UWidget> outered to the WidgetTree) and add the clone under a target parent panel, copying the source's slot property values onto the new slot when the slot classes match. Refuses (clear error, no partial/broken result) to duplicate a panel widget that currently has children -- UE's object duplication would leave the clone's slots aliasing the SAME original child widgets rather than deep-copying them (see FDuplicateDataWriter); duplicate leaf widgets, or rebuild the panel's children individually with add_widget_to_blueprint. Name collisions on new_name are a clear error (not a silent alias of the pre-existing widget at that name).

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes name of the widget to duplicate (must not be a panel widget with children)
new_name string yes unique name for the duplicate
target_parent_name string no Optional name of the panel widget to host the duplicate; defaults to the source widget's own current parent (sibling placement).

Returns: { widget_bp_path: string, source_widget_name: string, new_widget_name: string, widget_class: string, target_parent_name: string, slot_class: string, slot_class_matched_source: bool, slot_properties_copied: int, duplicated: bool, saved: bool, save_error: string }

get_level_widget_properties

Read-only

Read the live state of a UUserWidget hosted on a UWidgetComponent in the current editor level, found by the widget's object name (list_level_widget_components gives the names): class, validity, visibility, enabled and focus, the hosting component's draw size and relative transform, parent, and the direct children of its root panel (one level). Use it for this runtime state, which no UPROPERTY read gives; get_object_info reads the widget's raw properties. A running PIE session is never searched: use list_pie_widgets for live game UI.

Parameter Type Required Description
widget_name string yes Name of the widget to query

Returns: { widget_name: string, widget_class: string, widget_valid: bool, widget_visible: bool, visibility: string, size?: { width: number, height: number }, position?: { x: number, y: number, z: number }, rotation?: { pitch: number, yaw: number, roll: number }, scale?: { x: number, y: number, z: number }, parent_widget?: string, parent_class?: string, child_count: number, children: [{ name: string, class: string, depth: number (1), valid: bool, enabled: bool, visibility: string }], is_enabled: bool, has_focus: bool }

get_pie_focused_widget

Read-only

Report which UMG widget currently has FOCUS in the running PIE session -- the assertion that makes gamepad navigation testable instead of eyeballed. Resolves FSlateApplication's focused SWidget and maps it back to the UMG UWidget that created it, by walking up to the owning SObjectWidget and matching cached widgets: the same route the engine's own navigation component uses, and it has to walk up because the widget holding focus is usually an internal SButton, not the one that maps 1:1 to a UWidget. Pair it with inject_key_input route="slate", the only input path that moves focus at all: press Down, read this, assert. Returns has_focus:false as an honest success (not an error) when nothing is focused -- which is itself the finding when a menu opens with no focus and every navigation key then appears to do nothing.

Parameter Type Required Description
user_index number no Optional Slate user index (default 0). Local co-op players are separate Slate users, so player 2 is user 1.

Returns: { has_focus: bool, slate_widget_type: string, widget_name: string, widget_class: string, owning_user_widget: string, owning_user_widget_class: string, resolved_to_umg: bool, note? } -- resolved_to_umg:false together with has_focus:true means something in Slate holds focus but it is not a UMG widget (the viewport, a native Slate panel); slate_widget_type still names it.

get_widget_animation_tracks

Read-only

Read what one UWidgetAnimation of a Widget Blueprint animates: every widget it binds (widget_name, possessable_guid, is_root_widget, widget_in_tree) with its tracks (track_class, track_type float|color|bool, the animated property) and, per section, its range in seconds and every key of every channel (frame, time_seconds, value). Read-only. It reads what add_widget_animation_track and add_widget_animation_keyframe write, and gives the widget_name, property_path and time_seconds that remove_widget_animation_track and remove_widget_animation_keyframe take; get_widget_animations lists the animations. A missing Blueprint or animation is an error.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the animation (get_widget_animations lists them)

Returns: { widget_bp_path: string, animation_name: string, object_name: string, tick_resolution: number, playback_start_seconds: number, playback_end_seconds: number, binding_count: int, track_count: int, key_count: int, bindings: [{widget_name, possessable_guid, is_root_widget, widget_in_tree, slot_widget_name?, tracks: [{track_class, track_type, property_name, property_path, sections: [{section_index, start_seconds, end_seconds, channels: [{channel_type, channel_index, key_count, keys: [{frame, time_seconds, value}]}]}]}]}] }

get_widget_animations

Read-only

Lists the animations (UWidgetAnimations) authored in a Widget Blueprint asset, each with its object name, display name and whether it has a movie scene, plus animation_count and the resolved asset_path. Read-only: loads the asset, changes and saves nothing; a path that does not exist or is not a Widget Blueprint is an error, and a Blueprint without animations returns an empty list. Use it to get the animation_name that play_widget_animation, stop_widget_animation, remove_widget_animation, get_widget_animation_tracks and add_widget_animation_track take (either name works). add_widget_animation creates one; get_widget_animation_tracks shows what one animates.

Parameter Type Required Description
widget_bp_path string yes Asset path of the Widget Blueprint, e.g. "/Game/UI/WBP_MainMenu" (package or object path); it must exist and be a Widget Blueprint.

Returns: { widget_bp_path: string, asset_path: string, animations: [{name, display_name, has_movie_scene}], animation_count: int }

get_widget_blueprint_tree

Read-only

Return a Widget Blueprint's widget tree as nested {name, class, children[]} AND, on request, the actual VALUES of its widgets and slots -- which is what makes verifying a style a cheap read instead of a PIE session. Off by default (a bare tree is what name-only callers want); three switches turn it on: property_paths reads exact dotted paths ("WidgetStyle.Normal.TintColor") on every node whether or not they still hold the default -- this is the oracle that closes a set_widget_property; include_properties reports only what DIFFERS from each widget's archetype, i.e. what this Widget Blueprint actually changed, instead of the ~120 inherited properties nobody reads; include_slot adds each widget's UPanelSlot class plus its own non-default values (position, anchors, padding, row/column). Values come back as TYPED JSON, not UE export-text. widget_name dumps one subtree instead of the whole asset.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string no Optional: dump only this widget and its descendants instead of the whole tree.
property_paths array no Optional list of property names or dotted paths read on EVERY node, emitted under "properties" even when the value is still the default. A path that does not exist on a given widget is listed in that node's "unresolved_property_paths" (normal: a WidgetStyle has no meaning on a TextBlock), never silently dropped.
include_properties boolean no Emit each widget's editable properties that DIFFER from its archetype, under "non_default_properties" (default false).
include_slot boolean no Emit each widget's UPanelSlot class and its non-default slot values under "slot" (default false).
include_navigation boolean no Emit each widget's six gamepad/keyboard navigation directions under "navigation" (default false). A widget with no authored navigation reports all six as Escape with has_authored_navigation:false -- which is what it will actually do in game, rather than an empty object the caller has to interpret. Author them with set_widget_navigation.
max_depth number no Optional recursion limit (-1 = unlimited, the default). A panel cut off by the limit reports "children_omitted" instead of passing for a leaf.

Returns: { widget_bp_path: string, asset_path: string, widget_count: int, root_widget: string, dumped_root: string, include_properties: bool, include_slot: bool, include_navigation: bool, property_paths: [string], tree: {name, class, properties?, unresolved_property_paths?, non_default_properties?, slot?, children: [...], children_omitted?} }

list_level_widget_components

Read-only

CALL THIS FIRST to discover valid widget_name values instead of guessing: it enumerates ALL UWidgetComponents on ALL actors of the current EDITOR level, which is the EXACT population that get_level_widget_properties / set_level_widget_visibility search by widget_name (remove_widget searches it too). It reads GEditor's world and never a running PIE session (use list_pie_widgets for that), and it lists every widget component on an actor, not just the first. WARNING: THIS POPULATION IS NOT WIDGET BLUEPRINTS, and that is the trap the name does not warn you about: these are world-space UWidgetComponents hosted on actors. To author the CONTENT of a Widget Blueprint asset -- its tree, styles or layout -- you want get_widget_blueprint_tree / set_widget_property / set_slot_properties instead. In particular ANCHORS live on a UCanvasPanelSlot inside a Widget Blueprint's tree and have no meaning at all on a level UWidgetComponent: set them with set_slot_properties(widget_bp_path, widget_name, anchors=[min_x,min_y,max_x,max_y]).

Parameter Type Required Description
actor_name_filter string no Optional substring filter on the owning actor's name (Contains match)
offset integer no Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset.
limit integer no Most entries returned per call, 1..1000 (default 100).

Returns: { components: [{ actor_name: string, widget_component_name: string, widget_name: string|null, widget_class: string|null }], component_count: number (entries in this page), actor_name_filter: string|null, total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }

list_pie_widgets

Read-only

Read LIVE UMG from the running PIE session (game thread): enumerate the active UUserWidgets added to the viewport and walk each widget tree, emitting name/class plus optional visibility/hover/text/value/geometry as a parent/child tree. Reads only game-thread-safe widget-tree state (never the render thread). Errors clearly if no Play-In-Editor session is running. DESCENDS INTO NESTED WIDGET BLUEPRINTS: an AAA screen is a Widget Blueprint composed of Widget Blueprints, so everything interesting sits one level below the first. Cycles are handled with a visited set plus max_depth, and a subtree that IS cut says so in subtree_omitted instead of looking like a leaf. Rich text is read too (URichTextBlock does not derive from UTextBlock). include_bindings adds, on every UserWidget (top-level and nested), the property/event bindings its Widget Blueprint compiled and whether each is bound live.

Parameter Type Required Description
root_filter string no Optional case-sensitive substring; only top-level UserWidgets whose object name contains it are returned.
include_text boolean no Optional bool (default true): include UTextBlock text.
include_visibility boolean no Optional bool (default true): include visibility, is_hovered and has_keyboard_focus per widget. has_keyboard_focus is what tells you whether a navigation key will do anything at all: with nothing focused every key is a no-op, which reads exactly like broken navigation.
include_bindings boolean no Optional bool (default false): on each UserWidget, bindings: [{ widget_name, property, source, kind, defined_in, target_found, is_bound }] from its Widget Blueprint's compiled bindings.
include_values boolean no Optional bool (default false): include is_enabled + widget-type-specific value (Slider.value / ProgressBar.percent / CheckBox.is_checked / ComboBoxString.selected_option).
include_geometry boolean no Optional bool (default false): include GetCachedGeometry()-derived absolute_position/absolute_size, render_opacity, and render_transform.
max_depth number no Optional recursion limit (-1 = unlimited, the default). Counts every level including the descent into a nested Widget Blueprint's own tree. A subtree cut by the limit reports subtree_omitted rather than passing for a leaf.
world string no Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). In a 2-player PIE session EVERY client has its OWN widgets, so the default may well read the other player's HUD.

Returns: { widgets: [{ widget_name, class, is_any_animation_playing, visibility?, is_hovered?, bindings?, children: [{ widget_name, class, visibility?, is_hovered?, text?, is_enabled?, value?, percent?, is_checked?, selected_option?, geometry?, children: [...] }] }], widget_count: int, scanned_viewport_widgets: int, include_text: bool, include_visibility: bool, include_bindings: bool, include_values: bool, include_geometry: bool, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

list_widget_property_bindings

Read-only

List the UMG PROPERTY BINDINGS of a Widget Blueprint -- the "Bind" dropdown next to a property in the Designer's details panel, which makes that property recompute every frame by calling a function instead of holding a fixed value. These live in UWidgetBlueprint::Bindings, NOT in the widget tree and NOT in the event graph, so no other reader sees them; and UWidgetBlueprint::Bindings is NOT exposed to Python either (get_editor_property("bindings") throws), so this is the only headless way to read them. Each entry is re-validated live with the engine's own FDelegateEditorBinding::IsBindingValid, so a binding whose function was renamed or made non-pure comes back valid:false WITH the compiler's reason -- that is the difference between "there is a binding" and "there is a binding that works".

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
include_bindable_properties boolean no Also list, per widget in the tree, which properties ACCEPT a binding at all (default false). A property is bindable only if its widget declares a companion delegate named "<Property>Delegate" -- this saves guessing.

Returns: { widget_bp_path: string, binding_count: int, bindings: [{ widget_name, property_name, function_name, kind, member_guid, source_property, valid, validation_messages: [string] }], bindable_properties?: {widget_name: [string]} }

list_widget_types

Read-only

List the CURATED widget_type names accepted by add_widget_to_blueprint, with each entry's resolved /Script/UMG.<Name> class path and whether LoadObject actually resolves it in this build (should always be true; reported for honesty rather than assumed). This list is a convenience shortlist, NOT the full set of accepted values -- add_widget_to_blueprint also accepts any native widget class path (/Script/Module.ClassName) and any UserWidget-derived Widget Blueprint's /Game asset path (embeds a nested instance); see custom_class_note in the response.

No parameters.

Returns: { widget_types: [{ widget_type: string, class_path: string, resolvable: bool }], count: int, custom_class_note: string }

play_widget_animation

Destructive

Plays an animation of a Widget Blueprint on a live instance of that widget in a running Play-In-Editor session (UUserWidget::PlayAnimation): the first on-screen instance of the Blueprint's class in the PIE world that world selects. Without a PIE session, or without such an instance, nothing plays and the call still succeeds with played false, headless true, requires_pie true and a note: start PIE with start_play_in_editor and get the widget on screen first. A world selector that names no running PIE world while a session runs is an error naming the worlds there. It changes only the running widget, never the asset (saved is always false), and played true means PlayAnimation was called, not read back; a repeat call starts the animation again. An animation name the Blueprint does not have, a world that is not a PIE selector, a num_loops that is not a whole number of 0 or more, and an unknown play_mode are errors, refused before anything plays. Names come from get_widget_animations; stop playback with stop_widget_animation; list_pie_widgets shows which widgets are on screen.

Parameter Type Required Description
widget_bp_path string yes Asset path of the Widget Blueprint (e.g. "/Game/UI/WBP_HUD"); it must exist.
animation_name string yes Object name or display label of the animation, as get_widget_animations lists it (case-insensitive).
start_at_time number no Optional time in seconds into the animation to start from (default 0).
num_loops number no Optional whole number of times to play (default 1); 0 loops until stopped (stop_widget_animation), as the engine's PlayAnimation takes it. A negative or fractional number is an error.
play_mode string no Optional "Forward" (default) | "Reverse" | "PingPong", case-insensitive; any other value is an error.
playback_speed number no Optional speed multiplier (default 1.0; 2.0 plays twice as fast).
restore_state boolean no Optional bool: restore the pre-animation state on finish (default false).
world string no Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'); any other value is an error. In a 2-player PIE session EVERY client has its OWN widgets, so the default may well read the other player's HUD.

Returns: { widget_bp_path: string, animation_name: string, animation_exists: bool, played: bool, headless: bool, requires_pie: bool, note: string, saved: bool, num_loops?: number, play_mode?: string, live_widget_name?: string, live_animation_name?: string, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

pop_common_ui_widget

Destructive

Pop the ACTIVE screen off a live CommonUI stack, or clear the whole stack -- the inverse of push_common_ui_widget and the other half of driving a menu state machine headless (open, go deeper, come back, assert what is on top). WARNING: RUNTIME ONLY, same as the push: with no PIE session there is nothing on any stack. Popping an empty stack is an honest success with popped:false, not an error.

Parameter Type Required Description
stack_widget_name string yes Name of the live activatable container in the running session.
clear_all boolean no Remove EVERY widget instead of just the active one (default false).
player_index integer no Optional local player index whose viewport widgets are searched (default 0).
world string no Optional world selector: absent/'pie' | 'server' | 'client' | 'pie:N'.

Returns: { stack_widget_name, popped: bool, popped_widget: string, cleared_all: bool, widget_count: int, active_widget: string } -- widget_count and active_widget are read AFTER the operation; popped:false with widget_count:0 means the stack was already empty.

push_common_ui_widget

Additive

Push a screen onto a LIVE CommonUI activatable stack in the running PIE session -- the operation that lets a menu state machine be driven to a specific state and then asserted. create_common_ui_stack only puts the stack in place; its contents are populated at runtime with AddWidget, which this calls headless, so "open the pause menu, then the options page, now check the back button" is reproducible. WARNING: RUNTIME ONLY: the container's widget list and its widget pool are Transient, so with no PIE session there is genuinely nothing to push onto and this says so rather than pretending. The pushed widget is activated by the stack itself; read the result with get_common_ui_stack or list_pie_widgets, and move focus into it with set_pie_widget_focus.

Parameter Type Required Description
stack_widget_name string yes Name of the live UCommonActivatableWidgetStack (or any activatable container) in the running session. Resolved like click_pie_widget, nested Widget Blueprints included.
widget_class string yes The UCommonActivatableWidget class to push: a /Game Widget Blueprint path, its generated-class path, or a native class path.
player_index integer no Optional local player index whose viewport widgets are searched (default 0).
world string no Optional world selector: absent/'pie' | 'server' | 'client' | 'pie:N'.

Returns: { stack_widget_name, pushed_class, pushed_widget: string, widget_count: int, active_widget: string } -- widget_count and active_widget are read off the stack AFTER the push, so they are evidence rather than an echo.

remove_viewmodel

Destructive Idempotent Refused during PIE

Remove the view-model context named context_name from the MVVM view of a Widget Blueprint loaded by asset path, then compile and save the Blueprint in one undo step; view_model_count is what the view keeps. Idempotent: a name that matches no context, or a Blueprint with no MVVM view at all (has_mvvm_extension=false), is a success with removed=false, saved=false and a note, and nothing is changed or saved. A missing Blueprint is an error; a failed save makes success false with saved=false and save_error, the removal kept in memory. Refused during PIE unless force=true. Inverse: add_viewmodel; drop a single binding instead: unbind_widget_from_viewmodel.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint asset (string)
context_name string yes FName identifying the context to remove (idempotency key)

Returns: { widget_blueprint_name, context_name, already_existed, removed, view_model_count, has_mvvm_extension, saved, save_error?, note? }

remove_widget

Destructive

Detach a runtime UserWidget, found by object name, from the viewport or panel holding it with RemoveFromParent. It searches the worlds create_widget uses: the one target_world names, or without it the running PIE world first and then the editor world; in each, the first widget hosted by a level UWidgetComponent, then any other UserWidget of that world. The object is not deleted, no asset changes and there is no undo. was_in_viewport and had_parent are measured before the call: both false means nothing was detached, as for a component-hosted widget. It never edits a Widget Blueprint asset: remove_widget_from_blueprint deletes a widget from one.

Parameter Type Required Description
widget_name string yes Object name of the runtime widget to detach (case-insensitive), as list_level_widget_components or create_widget report it
target_world string no Optional world to search, with the values create_widget takes (editor, pie, server, client, pie:N, game). Omitted: the PIE world while PIE runs, then the editor world.

Returns: { widget_name: string, target_world: string, was_in_viewport: bool, had_parent: bool, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

remove_widget_animation

Destructive Refused during PIE

Remove a UWidgetAnimation from a Widget Blueprint. Inverse of add_widget_animation: finds the animation by object name or display label, removes it from WidgetBP->Animations, unregisters it as a blueprint variable (OnVariableRemoved), then compiles and saves. If no such animation exists it is an honest no-op (removed:false, already_existed:false, no save).

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the animation to remove

Returns: { widget_bp_path: string, animation_name: string, object_name: string, removed: bool, already_existed: bool, animation_count: int, saved: bool, save_error: string }

remove_widget_animation_keyframe

Destructive Refused during PIE

Remove the key at time_seconds (or the key_index-th key) from every channel of the track that animates property_path of widget_name in one UWidgetAnimation of a Widget Blueprint -- the four channels of a color track at once -- then compile and save the Blueprint; no undo step. Inverse of add_widget_animation_keyframe, which rounds time_seconds to a tick frame the same way, so the time given there finds its key here. The key is matched within tolerance seconds (default 0: the same tick). A time or key_index that matches no key is an error listing the key times, and nothing changes; so is a missing Blueprint, animation, binding or track. The section keeps its range. Refused during PIE unless force=true; a failed save makes success false with save_error. Read keys: get_widget_animation_tracks; the whole track: remove_widget_animation_track.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the animation
widget_name string yes name of the animated widget
property_path string yes the SAME property_path given to add_widget_animation_track
time_seconds number no time of the key to remove, in seconds; give it or key_index
key_index integer no index of the key among the first channel's keys (in time order); give it or time_seconds
tolerance number no how far from time_seconds a key may be and still match, in seconds (default 0)

Returns: { widget_bp_path: string, animation_name: string, widget_name: string, property_path: string, track_type: string, removed_frame: int, removed_time_seconds: number, keys_removed: int, key_count_after: int, saved: bool, save_error: string }

remove_widget_animation_track

Destructive Refused during PIE

Remove the track that animates property_path of widget_name inside one UWidgetAnimation of a Widget Blueprint, with its sections and keys, then compile and save the Blueprint; no undo step. Inverse of add_widget_animation_track: when it was the widget's last track, the widget's binding (its possessable and FWidgetAnimationBinding) goes too, and binding_removed says so. widget_name is matched against the animation's bindings, so the binding of a widget already deleted from the tree can be cleaned too. A widget or property with no such track is an honest no-op (removed=false, nothing compiled or saved); a missing Blueprint or animation is an error. Refused during PIE unless force=true; a failed save makes success false with save_error. Read first: get_widget_animation_tracks; one key only: remove_widget_animation_keyframe; the whole animation: remove_widget_animation.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the animation
widget_name string yes name of the animated widget, as get_widget_animation_tracks reports it
property_path string yes the property the track animates, the SAME property_path given to add_widget_animation_track (e.g. "RenderOpacity")

Returns: { widget_bp_path: string, animation_name: string, widget_name: string, property_path: string, removed: bool, track_class: string, binding_removed: bool, tracks_left_on_binding: int, saved: bool, save_error: string, note: string? }

remove_widget_from_blueprint

Destructive Refused during PIE

Delete widgets from the tree of a Widget Blueprint ASSET, children included, as the Designer's Delete does: their property bindings, the graph nodes that read their variables and the variables themselves go too; then compile and save the Blueprint. The removal is one undo step (compile and save are not undone). Inverse of add_widget_to_blueprint, add_list_view and create_common_ui_stack; remove_widget is the runtime tool and never edits an asset. Give widget_name or widget_names: every name is resolved first, and one unknown name fails the call with nothing changed. The reply re-reads the tree: removed_with_children lists every widget that left it. A widget animation that still binds a removed widget keeps its binding (remove_widget_animation_track drops it). Refused during PIE unless force=true; a failed save makes success false with save_error. Read the tree: get_widget_blueprint_tree.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string no name of the widget to delete (get_widget_blueprint_tree lists them); give it or widget_names
widget_names array no several widget names to delete in one call, with one compile and one save

Returns: { widget_bp_path: string, removed: string[], removed_with_children: string[], removed_count: int, widget_count: int, root_widget: string, saved: bool, save_error: string }

remove_widget_property_binding

Destructive Idempotent Refused during PIE

Remove a UMG property binding (the Designer's "Bind" dropdown set back to none), so the property goes back to holding its authored fixed value. Inverse of add_widget_property_binding and idempotent: a property that was not bound is an honest success with removed:false, never an error.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes Name of the widget whose binding to drop
property_name string yes The bound property, e.g. "Text". Matching is on widget_name + property_name, which is exactly how UMG identifies a binding (one binding per property, max).
save boolean no Compile + save the Widget Blueprint when done (default true).

Returns: { widget_bp_path: string, widget_name: string, property_name: string, removed: bool, already_absent: bool, remaining_binding_count: int, saved: bool, save_error: string }

rename_widget

Destructive Refused during PIE

Rename the widget old_name in the tree of a Widget Blueprint loaded by asset path, with the Designer's F2 rename: its variable, graph references, bindings and navigation links follow, then the Blueprint is compiled and saved in one undo step. Characters an object name cannot hold are dropped from the name but kept in the display label; resolved_name is the name the widget got, with a note when it differs. An empty, too-long or taken name (another widget or Blueprint member), a BindWidget name of the wrong type, or a missing Blueprint or old_name is an error, and nothing changes. A new_name identical to the current name renames nothing (renamed=false, saved=false, a note); a case change is a rename. A failed save makes success false with save_error. Refused during PIE unless force=true. Move it: reparent_widget; read the tree: get_widget_blueprint_tree.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
old_name string yes current name of the widget in the tree
new_name string yes desired new name

Returns: { widget_bp_path: string, old_name: string, new_name: string, resolved_name: string, renamed: bool, saved: bool, save_error?: string, note?: string }

render_widget_preview

Destructive

Render a Widget Blueprint to a PNG on disk WITHOUT running the game: builds the widget with the editor's own designer flags, draws it through FWidgetRenderer into a render target and writes the file. This is what turns "does this style look right?" from a PIE session someone has to watch into a static read plus one image to LOOK at. HONEST SCOPE: it is a DESIGN preview, the same thing the UMG Designer shows -- not the live HUD. Anything that only exists while the game runs (text filled in NativeConstruct, property bindings, ViewModel data, anything behind an IsDesignTime() guard) renders at its default/empty value. Use list_pie_widgets or capture_pie_screenshot for the running session. Returns rendered:false with a reason (never a blank image) when the editor has no RHI (-nullrhi/headless), because FWidgetRenderer cannot draw there.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset to render
output_path string no Optional output file. A bare name lands under <ProjectSaved>/MCP/WidgetPreviews/, an absolute path is used verbatim, and .png is appended when missing. Defaults to the asset's name.
width integer no Optional render width in pixels. Omit BOTH width and height to render at the widget's own desired size (a Slate prepass measures it).
height integer no Optional render height in pixels. Omit BOTH width and height to render at the widget's own desired size.
scale number no Optional draw scale applied by the renderer (default 1.0), the equivalent of DPI scaling in the Designer.
opaque_background boolean no Optional (default false). Force every pixel's alpha to 255 so the PNG is not transparent where the widget did not paint -- the same trick capture_viewport uses. Leave false to keep real transparency.
return_image boolean no Also return the picture as an MCP image block next to this JSON (default true); a picture over the size limits is sent as a smaller copy.

Returns: { widget_bp_path: string, rendered: bool, file_path: string, width: int, height: int, scale: number, drew_at_desired_size: bool, byte_size: int, designer_flags: string, preview_note: string, error?: string, image_returned: bool, image_width?: int, image_height?: int, image_note?: string }

reorder_widget_child

Destructive Refused during PIE

Change a widget's index among its parent panel's children via UPanelWidget::ShiftChild (clamps new_index internally; safe with any int). For a CanvasPanel parent, visual stacking is governed by each child's CanvasPanelSlot ZOrder (set_slot_properties z_order), NOT child index -- the index shift is still applied and reported honestly, with a note.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes name of the widget to reorder
new_index number yes desired index among its parent's children (clamped to [0, child_count])

Returns: { widget_bp_path: string, widget_name: string, parent_name: string, old_index: int, requested_index: int, resolved_index: int, child_count: int, reordered: bool, parent_is_canvas_panel: bool, note?: string, saved: bool, save_error: string }

reparent_widget

Destructive Refused during PIE

Move a widget to a new parent panel (optionally at a specific child index), via FWidgetBlueprintOperationUtils::MoveWidget -- the same primitive backing the Designer's drag-and-drop reparent. Validates the new parent is a panel widget and refuses to create a cycle. Optional slot_properties are applied to the widget's NEW slot afterward via the shared reflection setter (e.g. {"Row":1,"Column":2} for a GridSlot). THIS IS ALSO HOW YOU FILL A NAMED SLOT: a UNamedSlot is a UContentWidget (hence a panel), so add one with add_widget_to_blueprint widget_type="NamedSlot" and reparent the content into it -- there is no separate SetContentForSlot tool and none is needed (it answers reparented:true, new_slot_class:PanelSlot).

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes name of the widget to move
new_parent_name string yes name of the panel widget to become the new parent
target_index integer no Optional int child index to insert at (default: append at the end)
slot_properties object no Optional object of {PropertyName: value} applied to the resulting slot via reflection (best-effort; per-field errors are reported, not fatal)

Returns: { widget_bp_path: string, widget_name: string, old_parent_name: string, new_parent_name: string, new_slot_class: string, resolved_child_index: int, reparented: bool, slot_properties_applied: int, slot_property_errors?: [string], saved: bool, save_error: string }

set_level_widget_visibility

Destructive Idempotent

Set the Slate visibility of a UUserWidget hosted on a UWidgetComponent in the current editor level, found by the widget's object name (list_level_widget_components gives the names; a running PIE session is never searched). visibility is matched without case, and an invalid value is an error before the lookup; a widget not found is an error too. The change goes to the live widget instance only: no undo step, nothing marked dirty or saved, and a widget the component rebuilds, after a level reload for instance, starts from its class default again. A repeat call changes nothing. previous_visibility and actual_visibility are read around the write, and visibility_set compares the result with the request. Read it with get_level_widget_properties; live PIE UI is list_pie_widgets; a Widget Blueprint's own widgets are set_widget_property.

Parameter Type Required Description
widget_name string yes Object name of the UUserWidget a UWidgetComponent in the editor level hosts, as list_level_widget_components reports it in widget_name
visibility string yes Target visibility state: Visible, Collapsed, Hidden, HitTestInvisible, or SelfHitTestInvisible (matched without case)

Returns: { widget_name: string, visibility_set: bool, previous_visibility: string, requested_visibility: string, actual_visibility: string, widget_valid: bool }

set_named_slot_content

Destructive Idempotent Refused during PIE

Put a widget into a NAMED SLOT of a NESTED Widget Blueprint instance -- the "template screen with holes" pattern. reparent_widget already fills a UNamedSlot that belongs to your own tree (it is a UContentWidget, so it is just a panel), but the slot of an embedded instance is not a panel in your tree at all: it is an entry in that instance's NamedSlotBindings, and no other tool writes it. WARNING: the engine's SetContentForSlot returns nothing and SILENTLY DROPS the binding when the slot name does not exist, so this re-reads it with GetContentForSlot afterwards and reports the RE-READ, never the call. List what a given instance offers with available_slots in the response, or pass no slot_name at all to just enumerate them.

Parameter Type Required Description
widget_bp_path string yes /Game path of the OUTER Widget Blueprint (the one that owns both the nested instance and the content).
host_widget_name string yes Name of the nested Widget Blueprint instance in the outer tree -- the widget that OWNS the slot.
slot_name string yes Name of the named slot to fill. Omit to only enumerate what the host offers (nothing is written, available_slots is still returned).
content_widget_name string no Name of the widget in the OUTER tree to place in the slot. It must already exist there (add_widget_to_blueprint creates it). Omit together with clear=true to empty the slot.
clear boolean no Empty the slot instead of filling it (default false). Mutually exclusive with content_widget_name.
save boolean no Compile + save the Widget Blueprint when done (default true).

Returns: { widget_bp_path, host_widget_name, host_class, available_slots: [string], slot_name, content_widget_name, filled: bool, verified_content: string, saved, save_error } -- verified_content is what GetContentForSlot returns AFTER the write: empty when the engine dropped the binding, which is the only way to tell that from a success.

set_pie_list_view_items

Destructive Idempotent

Populate a LIVE UListView/UTileView in the running PIE session. Resolves widget_name (optionally drilling into child_name) among the active viewport UserWidgets using the same walk click_pie_widget uses, resolves each entry in items[] to a UObject* (an actor name/label in the PIE world, else a /Game asset path via FSoftObjectPath::TryLoad), then calls SetListItems (or AddItems when append=true). Companion to add_list_view (view_type List or Tile), which only constructs an EMPTY view.

Parameter Type Required Description
widget_name string yes Required. Name of the target UListView/UTileView in the live tree (as reported by list_pie_widgets), resolved the same way click_pie_widget resolves widget_name.
items array yes Required array of strings. Each entry is either an actor name/label to resolve in the PIE world, or a /Game asset path to load via FSoftObjectPath::TryLoad.
child_name string no Optional: after resolving widget_name, drill into a descendant widget with this name and populate THAT widget instead.
player_index integer no Optional (default 0): restrict widget resolution to viewport UserWidgets owned by this local player index (single-player PIE resolves globally).
append boolean no Optional (default false). false = SetListItems (replaces the current item list). true = AddItems (appends).
refresh boolean no Optional (default true). Accepted for API symmetry: UListView::SetListItems/AddItems call UListViewBase::RequestRefresh() UNCONDITIONALLY, so refresh=false cannot honestly suppress it -- see refresh_note in the response rather than a silent no-op.
world string no Optional world selector: absent/'pie' (default) | 'server' | 'client' | 'pie:N' | 'game' (alias of 'pie'). In a 2-player PIE session each client owns its own widgets.

Returns: { success, widget_name, resolved_widget, resolved_class, child_name?, player_index, requested_items, resolved_count, unresolved_items[], append, refresh, refresh_note, item_count_after, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

set_pie_widget_focus

Destructive Idempotent

Give keyboard/gamepad FOCUS to a live UMG widget in the running PIE session, so navigation has somewhere to start from. Menus routinely open with nothing focused, and then every navigation key does nothing -- which reads exactly like broken navigation and sends you to debug rules that were fine. Resolves the widget the same way click_pie_widget does (widget_name, optionally drilling in with child_name, nested Widget Blueprints included), then calls UWidget::SetKeyboardFocus. Verify with get_pie_focused_widget and drive from there with inject_key_input route="slate".

Parameter Type Required Description
widget_name string yes Name of a live UserWidget added to the viewport, or of a widget inside one.
child_name string no Optional: after resolving widget_name, drill into this descendant by name (nested Widget Blueprints included).
player_index integer no Optional local player index whose viewport widgets are searched (default 0).
world string no Optional world selector, same rules as list_pie_widgets: absent/'pie' | 'server' | 'client' | 'pie:N'.

Returns: { focused: bool, widget_name: string, widget_class: string, has_keyboard_focus: bool } -- has_keyboard_focus is RE-READ off the widget after the call, so it is evidence and not an echo: false means Slate refused the focus, and the usual cause is that the widget is not focusable (check IsFocusable and its Visibility -- a HitTestInvisible widget cannot take focus).

set_pie_widget_value

Destructive Idempotent

Set a LIVE PIE input widget's REAL value (companion to click_pie_widget, which only broadcasts a delegate with zero-init params and never touches Slider/CheckBox/EditableTextBox/ComboBoxString state first). Resolves the widget exactly like click_pie_widget (same widget_name/child_name/player_index rules), then calls the widget's real setter: USlider::SetValue, UCheckBox::SetIsChecked, UEditableTextBox::SetText/UEditableText::SetText, UComboBoxString::SetSelectedOption, or UProgressBar::SetPercent. fire_event genuinely gates a manual OnCheckStateChanged/OnTextChanged(+OnTextCommitted) broadcast for CheckBox/EditableText(Box); Slider/ComboBoxString auto-broadcast on the engine side whenever the value actually changes (fire_event cannot suppress that -- see event_fired_note); ProgressBar has no change event at all. Errors clearly if no PIE session is running, the widget is not found, or its class is not one of the supported input types.

Parameter Type Required Description
widget_name string yes Required. Name of the target UWidget in the live tree (as reported by list_pie_widgets).
value object yes Required object: {"type":"float"|"bool"|"string", "value": <matching JSON type>}.
child_name string no Optional: drill into a descendant widget with this name after resolving widget_name.
player_index integer no Optional (default 0): filter to viewport UserWidgets owned by this local player index.
fire_event boolean no Optional bool (default true): broadcast the widget's change event where the engine does not already do so unconditionally (CheckBox / EditableTextBox / EditableText).
commit_type string no Optional "Default" | "OnEnter" | "OnUserMovedFocus": when present (EditableTextBox/EditableText only, and fire_event is true), also broadcasts OnTextCommitted with this commit type.
world string no Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). In a 2-player PIE session EVERY client has its OWN widgets, so the default may well read the other player's HUD.

Returns: { widget_name, resolved_widget, resolved_class, value_type, value, set: bool, event_fired: bool, player_index, child_name?, event_fired_note?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

set_slot_properties

Destructive Idempotent Refused during PIE

Set ANY property of a widget's UPanelSlot BY REFLECTION, whatever the concrete slot class is -- including the 9 of UMG's 17 slot types that no shortcut covers (UButtonSlot, which is every widget inside a Button; UUniformGridSlot, UWrapBoxSlot, UStackBoxSlot, UWidgetSwitcherSlot, USafeZoneSlot, UScaleBoxSlot, UBackgroundBlurSlot, UWindowTitleBarAreaSlot) and any slot type a future engine version adds. Accepts dotted paths into nested slot structs ("Padding.Left", "Size.SizeRule") and reports field by field what landed, same honest contract as set_widget_property: the oracle is applied[]/ignored[]/errors[], not success. It covers the common slots too, with the engine's names and formats: a CanvasPanel slot's LayoutData {Anchors, Offsets {Left, Top, Right, Bottom}}, ZOrder and bAutoSize; a box, overlay, border, size-box or scroll-box slot's HorizontalAlignment/VerticalAlignment (HAlign_Center, VAlign_Fill...), Padding {Left, Top, Right, Bottom} and Size {SizeRule, Value}; a grid slot's Row, Column, RowSpan, ColumnSpan, Layer and Nudge {X, Y}.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes name of the widget whose slot to edit (its PARENT panel decides the slot class; read it from get_widget_blueprint_tree include_slot=true)
properties object yes {"<property or dotted path>": <value>, ...} written onto the slot object, e.g. {"Padding":[8,4,8,4],"HorizontalAlignment":"HAlign_Center"}. Enums accept the short name; FMargin accepts a scalar, [h,v] or [l,t,r,b].
save boolean no Compile + save the Widget Blueprint when done (default true).

Returns: { widget_bp_path: string, widget_name: string, parent_name: string, slot_class: string, requested_paths: [string], applied: [string], ignored: [string], errors: [{path, error}], failed_paths: [string], applied_count: int, all_applied: bool, current_values: object, saved: bool, save_error: string }

set_viewmodel_field

Destructive Idempotent

Create a fresh instance of view_model_class and give it to a live UUserWidget through UMVVMView::SetViewModelByClass, which fills the view-model context of the widget whose class matches; context_name does not pick it. The widget is the one a UWidgetComponent shows: on the first actor whose label matches widget_instance_name, or, when the name contains a slash, on the first actor whose component uses that widget class, searched across every open world, PIE included. Runtime state only: nothing is compiled or saved, and each call swaps in a new instance. set and assigned_context are read back: if no context took it (none or several match, or it is not settable), success is false with the reason. A widget without an MVVM view, a class that is abstract or not a UMVVMViewModelBase, or no matching widget is an error. Authoring-time contexts: add_viewmodel; bindings: bind_widget_to_viewmodel.

Parameter Type Required Description
widget_instance_name string yes Label of an actor that has a widget component, matched case-insensitively, or, when it contains a slash, the widget class its component uses, e.g. "/Game/UI/WBP_Nameplate".
view_model_class string yes VM class: asset path or /Script/<Module>.<ClassName>
context_name string yes Name of the view-model context meant; echoed back, since the context is chosen by the class of view_model_class (assigned_context says which took it).

Returns: { widget_instance_name, view_model_class, context_name, set, assigned_context, instance_class, error?, note? }

set_widget_drag_drop

Destructive Idempotent Refused during PIE

Set DragDropOperationClass on a widget found by name in the tree of a Widget Blueprint, then compile and save the Blueprint in one undo step (set=true, changed=true, property_set); a failed save makes success false with saved=false and save_error, the class kept in memory. A widget already holding that class is left as it is (changed=false, saved=false, a note), nothing compiled or saved. Only list, tile and tree views (UListViewBase) have that property; any other widget gets set=false and a note, nothing written: its drag and drop is the OnDragDetected and OnDrop events of a User Widget graph, authored with build_blueprint_graph after list_overridable_functions. operation_class defaults to /Script/UMG.DragDropOperation; a class that does not load or is no UDragDropOperation, or a missing Blueprint or widget, is an error, nothing written. Refused during PIE unless force=true. Make the view with add_list_view (view_type List, Tile or Tree).

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint, e.g. "/Game/UI/WBP_Inventory".
widget_name string yes Name of the widget in the tree of that Blueprint, e.g. "ItemTiles"; only a list, tile or tree view can take the class.
operation_class string no Class path of a UDragDropOperation subclass, e.g. "/Script/UMG.DragDropOperation" or "/Game/UI/DDO_Item.DDO_Item_C"; defaults to /Script/UMG.DragDropOperation.

Returns: { widget_blueprint_name, widget_name, operation_class, set, changed, has_drag_drop_property, operation_class_loaded, property_set?, saved?, save_error?, note? }

set_widget_navigation

Destructive Idempotent Refused during PIE

Author a widget's GAMEPAD/KEYBOARD navigation rules -- what gets focus when the player pushes up, down, left, right, Tab or Shift+Tab off this widget. Without this a menu cannot be driven with a pad, and it is NOT reachable through set_widget_property: UWidget::Navigation is an Instanced SUBOBJECT that starts null, so there is no asset path a reflection setter could point at and a dotted path fails on a null segment. Follows the editor's own flow, including the two details that matter: the subobject is created RF_Transactional with template flags propagated, and if all six directions end up on Escape the subobject is DISCARDED (that is what tells "no navigation authored" apart from "navigation authored that happens to be the default", and it is what the Designer does). Read the result back with get_widget_blueprint_tree include_navigation=true.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes Name of the widget in the tree whose navigation to author
rules object no Dict of {direction: rule}. Direction is Up|Down|Left|Right|Next|Previous (Next/Previous are Tab/Shift+Tab). The value is either a rule name string ("Wrap", "Stop", "Escape") or an object {"rule":"Explicit","widget_to_focus":"Btn_Confirm"} when the rule needs a target. Rules: Escape (default -- let the search continue outward), Stop (movement dies here), Wrap (cycle inside the container), Explicit (jump to widget_to_focus).
all_directions string no Optional rule name applied to ALL SIX directions before rules is processed, so you can say "Stop everywhere, except Down" in one call. Explicit is refused here: it would need six different targets.
save boolean no Compile + save the Widget Blueprint when done (default true).

Returns: { widget_bp_path, widget_name, applied: [{direction, rule, widget_to_focus}], current_navigation: {Up:{rule,widget_to_focus}, ...}, navigation_discarded: bool, saved, save_error } -- navigation_discarded:true means every direction ended on Escape so the subobject was dropped, exactly as the Designer does; current_navigation is then all-Escape.

set_widget_property

Destructive Idempotent Refused during PIE

Set ONE or MANY reflected properties on a widget of a Widget Blueprint, addressing NESTED STYLE FIELDS by dotted path ("WidgetStyle.Normal.TintColor", "Items[0].Label") and reporting FIELD BY FIELD what landed, then compile and save it (save=false defers). Use it instead of set_properties for widgets: it finds the widget by name in the tree, writes leaf fields inside structs, takes color/margin/brush shorthands and compiles; set_properties takes only top-level names and compiles nothing. Two calling shapes over one write path: property_name+value, or a properties map under ONE Modify + ONE compile + ONE save (a FButtonStyle is ~30 leaf fields -- one call, not 30 recompiles). WARNING: the oracle is applied[]/ignored[]/errors[], NOT success: a key matching no reflected field lands in ignored[] and all_applied goes false. Refused while PIE runs unless force=true. Read back with get_widget_blueprint_tree(property_paths=[...]); slot layout: set_slot_properties.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
widget_name string yes name of the widget in the tree (get_widget_blueprint_tree lists them)
property_name string no Single reflected property name ("Text") OR a dotted path into nested structs ("WidgetStyle.Normal.TintColor"); array indices are supported ("Items[0].Label"). Requires value. Omit when using properties.
value any no New value for property_name: string, number, bool, JSON object (struct, applied field by field) or JSON array. Colors accept {"R":1,"G":0,"B":0,"A":1}, [r,g,b,a] or "#RRGGBBAA"; FMargin accepts a scalar, [h,v] or [l,t,r,b]; an FSlateBrush accepts a texture/material path string; enums accept the short name ("Box").
properties object no Batch form: {"<dotted path>": <value>, ...}. Every path is written against the SAME widget under one Modify/compile/save. Combinable with property_name+value (both end up in the same map).
save boolean no Compile + save the Widget Blueprint when done (default true). Pass false to chain several calls and save once at the end -- the asset stays dirty in memory until something saves it.

Returns: { widget_bp_path: string, widget_name: string, widget_class: string, requested_paths: [string], applied: [string], ignored: [string], errors: [{path, error}], failed_paths: [string], applied_count: int, all_applied: bool, current_values: object, saved: bool, save_error: string }

stop_widget_animation

Destructive

Stop a widget animation. REAL stop (UUserWidget::StopAnimation) when a live PIE instance of this WidgetBP is found in the viewport's active UUserWidgets: stopped is true when the animation was playing before the call and is not after it; one that was not playing (stopped or paused) succeeds with stopped:false and a note, and one still playing after the call is an error. Falls back to an honest headless gate (stopped:false, headless:true, requires_pie:true) otherwise.

Parameter Type Required Description
widget_bp_path string yes /Game path of the Widget Blueprint asset
animation_name string yes object name OR display label of the animation to stop
world string no Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). In a 2-player PIE session EVERY client has its OWN widgets, so the default may well read the other player's HUD.

Returns: { widget_bp_path: string, animation_name: string, animation_exists: bool, stopped: bool, headless: bool, requires_pie: bool, note: string, saved: bool, live_widget_name?: string, live_animation_name?: string, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }

unbind_widget_from_viewmodel

Destructive Refused during PIE

Remove one binding from the MVVM view of a Widget Blueprint loaded by asset path, picked by binding_index or, when no index is given, by binding_id, then compile and save the Blueprint in one undo step; binding_count is what the view keeps. A binding that is not there (an index out of range, an id no binding has, or a Blueprint with no MVVM view: has_mvvm_extension=false) is a success with removed=false, saved=false and a note, and nothing is changed or saved. By index a repeat call removes the binding that moved into that index. Neither identifier, a binding_id that is not a GUID, or a missing Blueprint is an error. A failed save makes success false with saved=false and save_error, the removal kept in memory. Refused during PIE unless force=true. Inverse: bind_widget_to_viewmodel; a whole context: remove_viewmodel.

Parameter Type Required Description
widget_blueprint_name string yes /Game path of the Widget Blueprint asset
binding_index integer no int index of the binding to remove (primary identifier; one of binding_index / binding_id required)
binding_id string no optional GUID string of the binding to remove (alternative to binding_index)

Returns: { widget_blueprint_name, binding_index?, binding_id?, already_existed, removed, binding_count, has_mvvm_extension, saved, save_error?, note? }