Skip to main content
Glama

add_image_to_widget

Add an Image widget to a target Widget Blueprint by specifying its component name, optional texture path, position, size, and tint color. Use it to populate UMG interfaces programmatically.

Instructions

Add an Image widget to a Widget Blueprint.

Args: widget_name: Widget Blueprint name image_name: Component name texture_path: Texture asset path (optional) position: [X, Y] position size: [Width, Height] color: [R,G,B,A] tint color

KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_image_to_widget(widget_name="/Game/MCP_Test/WBP_Example", image_name="ExampleName")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
colorNo
positionNo
image_nameYes
widget_nameYes
texture_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a mutating operation ('Add') but does not state whether existing components are overwritten, whether the widget blueprint must already exist, what happens if texture_path is empty, or whether the change requires compilation. The KB link hints at more context but does not provide it inline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with its purpose. The Args block, KB pointer, and example are all useful and directly support calling the tool. No filler or redundant restatement of the tool name is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all parameters and gives an example, but it omits behavioral context such as whether the widget blueprint must already exist, whether the image widget is added to a specific parent/canvas, and what the output contains. Given the tool has 6 parameters, no annotations, and a moderately complex UI-construction domain, more setup and side-effect context would be needed for fully confident invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does. It explains every parameter: widget_name is the Widget Blueprint name, image_name is the component name, texture_path is optional, position is [X, Y], size is [Width, Height], and color is [R,G,B,A] tint. The example also clarifies the expected path-like format for widget_name. It stops short of explaining coordinate space or valid ranges, but the coverage is strong.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action verb and resource: 'Add an Image widget to a Widget Blueprint.' This distinguishes it from sibling tools like add_text_block_to_widget and add_button_to_widget. However, it does not explicitly differentiate itself from those siblings by name, so it falls just short of full distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance about when to use this tool versus alternatives. It does not mention prerequisites like creating the Widget Blueprint first, nor does it compare against add_text_block_to_widget, add_button_to_widget, or other widget-related tools. The KB reference points to a file but does not state when this tool is the right choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools