__nexus_ide_figure_message__
Build one IDE side-channel figure JSON object (nexus#1491, nexus-ide docs/side-channel.md). The text has no newlines. A picture is inlined as "png" or "svg" (base64) when the finished OSC frame would fit in 64 KiB; otherwise "path" names a file the IDE can read. INLINED is true when the picture travelled in the JSON, so the caller may delete PATH.