imgui_draw
Append draw commands for lines, shapes, gradients, ellipses, arcs, text, polygons, and bezier curves to a named layer in an ImGui window, preserving prior geometry.
Instructions
Append draw commands to a named layer in a window. Repeated calls preserve earlier geometry by default. Supports lines, shapes, gradients, ellipses, arcs, text, polygons, and bezier curves.
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>",
"commands": "<commands>"
},
"name": "imgui_draw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Named draw layer id (default: draw_list) | draw_list |
| mode | No | Append to the layer (default) or replace it | append |
| window | Yes | Target window id | |
| commands | Yes | Array of draw commands to execute |