imgui_load_texture
Loads a texture from a BMP or PPM image file for use in Dear ImGui UI. If the file is missing or unsupported, generates a checkerboard placeholder.
Instructions
Load a texture from a BMP or PPM file. If the file doesn't exist or is unsupported, creates a 64x64 checkerboard placeholder texture.
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": {
"id": "<id>",
"path": "<path>"
},
"name": "imgui_load_texture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique texture identifier | |
| path | Yes | Path to BMP or PPM image file |