imgui_import_json
Restore a Dear ImGui UI layout by importing it from a JSON object or file. Clears the current layout and recreates all windows and widgets exactly as originally exported.
Instructions
Import a UI layout from JSON (same format as imgui_export_json). Clears the current layout and recreates all windows and widgets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "imgui_import_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | The layout JSON object to import (same format as export_json output). | |
| path | No | Path to a JSON file to import. Use this OR the 'json' field. |