mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 04:29:51 +08:00
requestExport(request, timeoutMs) runs one draw.io export with the request's own parameters (a PNG's pageId and width) and resolves with its answer (data, or xml for format "xml"); null when draw.io does not answer. showTransient(xml) puts a document on the canvas for an export only: it is not recorded, its autosaves are ignored, and the next loadDiagram brings the user back to the page they were on. The MCP's canvas shell answers the server's export requests with both.