imgui_screenshot_widget
Capture a screenshot of a Dear ImGui widget in a specified window, returning the saved file path and widget bounds location data.
Instructions
Capture a screenshot with information about a specific widget's bounds. Returns the screenshot path and widget location 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>",
"widget": "<widget>"
},
"name": "imgui_screenshot_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path to save the screenshot (defaults to the system temporary directory) | |
| widget | Yes | Widget ID to capture bounds for | |
| window | Yes | Window ID containing the widget |