imgui_update_draw_command
Update a single draw command within a named ImGui draw layer by its index, modifying only the specified fields like color, position, or thickness without rebuilding the entire layer's command list.
Instructions
Update a single draw command in a named draw layer without replacing the entire layer. Specify the command index and the fields to change.
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>",
"index": "<index>",
"fields": "<fields>"
},
"name": "imgui_update_draw_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index of the draw command to update | |
| layer | No | Draw layer widget id (default: draw_list) | draw_list |
| fields | Yes | Fields to update on the draw command | |
| window | Yes | Target window id |