imgui_update_widget
Update the properties of an existing ImGui widget—such as value, text, color, items, enabled state, or plot data—directly within a specified window.
Instructions
Update an existing widget's properties. Can update value, text, checked state, label, content, color, items, selected index, enabled state, and plot data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"window": "<window>",
"id": "<id>"
},
"name": "imgui_update_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget identifier | |
| max | No | New maximum value | |
| min | No | New minimum value | |
| hint | No | New hint/placeholder text | |
| text | No | New text content for input widgets | |
| color | No | New RGBA color [r,g,b,a] | |
| items | No | New items for combo/listbox | |
| label | No | New label | |
| speed | No | New drag speed | |
| value | No | New float value | |
| format | No | New format string | |
| values | No | New multi-component values or plot data | |
| window | Yes | Window containing the widget | |
| checked | No | New checkbox/radio state | |
| content | No | New display content for text widgets | |
| enabled | No | Enable/disable widget | |
| int_max | No | New int maximum | |
| int_min | No | New int minimum | |
| overlay | No | New overlay text for progress_bar | |
| tooltip | No | New tooltip text | |
| selected | No | New selected index | |
| int_value | No | New integer value | |
| int_values | No | New multi-component integer values | |
| widget_type | No | Optional replacement widget type |