daigram 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/LICENSE +661 -0
  2. package/LICENSE-MIT +21 -0
  3. package/NOTICE +11 -0
  4. package/README.md +788 -2
  5. package/assets/fonts/CascadiaCode-Regular.ttf +0 -0
  6. package/assets/fonts/Excalifont-Regular.ttf +0 -0
  7. package/assets/fonts/LICENSES.md +63 -0
  8. package/assets/fonts/LiberationSans-Regular.ttf +0 -0
  9. package/assets/fonts/Virgil-Regular.ttf +0 -0
  10. package/dist/ai/config.d.ts +11 -0
  11. package/dist/ai/config.d.ts.map +1 -0
  12. package/dist/ai/config.js +59 -0
  13. package/dist/ai/config.js.map +1 -0
  14. package/dist/ai/providers/anthropic.d.ts +3 -0
  15. package/dist/ai/providers/anthropic.d.ts.map +1 -0
  16. package/dist/ai/providers/anthropic.js +71 -0
  17. package/dist/ai/providers/anthropic.js.map +1 -0
  18. package/dist/ai/providers/openai-compatible.d.ts +3 -0
  19. package/dist/ai/providers/openai-compatible.d.ts.map +1 -0
  20. package/dist/ai/providers/openai-compatible.js +95 -0
  21. package/dist/ai/providers/openai-compatible.js.map +1 -0
  22. package/dist/ai/request-settings.d.ts +9 -0
  23. package/dist/ai/request-settings.d.ts.map +1 -0
  24. package/dist/ai/request-settings.js +56 -0
  25. package/dist/ai/request-settings.js.map +1 -0
  26. package/dist/ai/routes.d.ts +7 -0
  27. package/dist/ai/routes.d.ts.map +1 -0
  28. package/dist/ai/routes.js +192 -0
  29. package/dist/ai/routes.js.map +1 -0
  30. package/dist/ai/runner.d.ts +19 -0
  31. package/dist/ai/runner.d.ts.map +1 -0
  32. package/dist/ai/runner.js +77 -0
  33. package/dist/ai/runner.js.map +1 -0
  34. package/dist/ai/sse.d.ts +4 -0
  35. package/dist/ai/sse.d.ts.map +1 -0
  36. package/dist/ai/sse.js +53 -0
  37. package/dist/ai/sse.js.map +1 -0
  38. package/dist/ai/system.d.ts +2 -0
  39. package/dist/ai/system.d.ts.map +1 -0
  40. package/dist/ai/system.js +17 -0
  41. package/dist/ai/system.js.map +1 -0
  42. package/dist/ai/tools.d.ts +10 -0
  43. package/dist/ai/tools.d.ts.map +1 -0
  44. package/dist/ai/tools.js +134 -0
  45. package/dist/ai/tools.js.map +1 -0
  46. package/dist/ai/types.d.ts +72 -0
  47. package/dist/ai/types.d.ts.map +1 -0
  48. package/dist/ai/types.js +2 -0
  49. package/dist/ai/types.js.map +1 -0
  50. package/dist/bin.d.ts +3 -0
  51. package/dist/bin.d.ts.map +1 -0
  52. package/dist/bin.js +52 -0
  53. package/dist/bin.js.map +1 -0
  54. package/dist/cli/args.d.ts +15 -0
  55. package/dist/cli/args.d.ts.map +1 -0
  56. package/dist/cli/args.js +78 -0
  57. package/dist/cli/args.js.map +1 -0
  58. package/dist/cli/commands/ai.d.ts +2 -0
  59. package/dist/cli/commands/ai.d.ts.map +1 -0
  60. package/dist/cli/commands/ai.js +45 -0
  61. package/dist/cli/commands/ai.js.map +1 -0
  62. package/dist/cli/commands/arrange.d.ts +2 -0
  63. package/dist/cli/commands/arrange.d.ts.map +1 -0
  64. package/dist/cli/commands/arrange.js +103 -0
  65. package/dist/cli/commands/arrange.js.map +1 -0
  66. package/dist/cli/commands/canvases.d.ts +2 -0
  67. package/dist/cli/commands/canvases.d.ts.map +1 -0
  68. package/dist/cli/commands/canvases.js +38 -0
  69. package/dist/cli/commands/canvases.js.map +1 -0
  70. package/dist/cli/commands/check.d.ts +2 -0
  71. package/dist/cli/commands/check.d.ts.map +1 -0
  72. package/dist/cli/commands/check.js +15 -0
  73. package/dist/cli/commands/check.js.map +1 -0
  74. package/dist/cli/commands/comment.d.ts +2 -0
  75. package/dist/cli/commands/comment.d.ts.map +1 -0
  76. package/dist/cli/commands/comment.js +76 -0
  77. package/dist/cli/commands/comment.js.map +1 -0
  78. package/dist/cli/commands/elements.d.ts +8 -0
  79. package/dist/cli/commands/elements.d.ts.map +1 -0
  80. package/dist/cli/commands/elements.js +285 -0
  81. package/dist/cli/commands/elements.js.map +1 -0
  82. package/dist/cli/commands/frame.d.ts +2 -0
  83. package/dist/cli/commands/frame.d.ts.map +1 -0
  84. package/dist/cli/commands/frame.js +58 -0
  85. package/dist/cli/commands/frame.js.map +1 -0
  86. package/dist/cli/commands/install-skill.d.ts +2 -0
  87. package/dist/cli/commands/install-skill.d.ts.map +1 -0
  88. package/dist/cli/commands/install-skill.js +108 -0
  89. package/dist/cli/commands/install-skill.js.map +1 -0
  90. package/dist/cli/commands/layout.d.ts +2 -0
  91. package/dist/cli/commands/layout.d.ts.map +1 -0
  92. package/dist/cli/commands/layout.js +15 -0
  93. package/dist/cli/commands/layout.js.map +1 -0
  94. package/dist/cli/commands/render.d.ts +2 -0
  95. package/dist/cli/commands/render.d.ts.map +1 -0
  96. package/dist/cli/commands/render.js +64 -0
  97. package/dist/cli/commands/render.js.map +1 -0
  98. package/dist/cli/commands/scene.d.ts +8 -0
  99. package/dist/cli/commands/scene.d.ts.map +1 -0
  100. package/dist/cli/commands/scene.js +147 -0
  101. package/dist/cli/commands/scene.js.map +1 -0
  102. package/dist/cli/commands/server.d.ts +4 -0
  103. package/dist/cli/commands/server.d.ts.map +1 -0
  104. package/dist/cli/commands/server.js +66 -0
  105. package/dist/cli/commands/server.js.map +1 -0
  106. package/dist/cli/commands/snapshot.d.ts +2 -0
  107. package/dist/cli/commands/snapshot.d.ts.map +1 -0
  108. package/dist/cli/commands/snapshot.js +41 -0
  109. package/dist/cli/commands/snapshot.js.map +1 -0
  110. package/dist/cli/image-options.d.ts +43 -0
  111. package/dist/cli/image-options.d.ts.map +1 -0
  112. package/dist/cli/image-options.js +71 -0
  113. package/dist/cli/image-options.js.map +1 -0
  114. package/dist/cli/run.d.ts +2 -0
  115. package/dist/cli/run.d.ts.map +1 -0
  116. package/dist/cli/run.js +115 -0
  117. package/dist/cli/run.js.map +1 -0
  118. package/dist/cli/util.d.ts +5 -0
  119. package/dist/cli/util.d.ts.map +1 -0
  120. package/dist/cli/util.js +35 -0
  121. package/dist/cli/util.js.map +1 -0
  122. package/dist/core/arrow-routing.d.ts +31 -0
  123. package/dist/core/arrow-routing.d.ts.map +1 -0
  124. package/dist/core/arrow-routing.js +244 -0
  125. package/dist/core/arrow-routing.js.map +1 -0
  126. package/dist/core/bulk-ops.d.ts +55 -0
  127. package/dist/core/bulk-ops.d.ts.map +1 -0
  128. package/dist/core/bulk-ops.js +181 -0
  129. package/dist/core/bulk-ops.js.map +1 -0
  130. package/dist/core/canvas-client.d.ts +110 -0
  131. package/dist/core/canvas-client.d.ts.map +1 -0
  132. package/dist/core/canvas-client.js +416 -0
  133. package/dist/core/canvas-client.js.map +1 -0
  134. package/dist/core/canvas-id.d.ts +4 -0
  135. package/dist/core/canvas-id.d.ts.map +1 -0
  136. package/dist/core/canvas-id.js +5 -0
  137. package/dist/core/canvas-id.js.map +1 -0
  138. package/dist/core/canvas-persistence.d.ts +30 -0
  139. package/dist/core/canvas-persistence.d.ts.map +1 -0
  140. package/dist/core/canvas-persistence.js +854 -0
  141. package/dist/core/canvas-persistence.js.map +1 -0
  142. package/dist/core/canvas-registry.d.ts +36 -0
  143. package/dist/core/canvas-registry.d.ts.map +1 -0
  144. package/dist/core/canvas-registry.js +161 -0
  145. package/dist/core/canvas-registry.js.map +1 -0
  146. package/dist/core/canvas-routes.d.ts +5 -0
  147. package/dist/core/canvas-routes.d.ts.map +1 -0
  148. package/dist/core/canvas-routes.js +29 -0
  149. package/dist/core/canvas-routes.js.map +1 -0
  150. package/dist/core/canvas-state.d.ts +14 -0
  151. package/dist/core/canvas-state.d.ts.map +1 -0
  152. package/dist/core/canvas-state.js +20 -0
  153. package/dist/core/canvas-state.js.map +1 -0
  154. package/dist/core/canvas.d.ts +13 -0
  155. package/dist/core/canvas.d.ts.map +1 -0
  156. package/dist/core/canvas.js +4 -0
  157. package/dist/core/canvas.js.map +1 -0
  158. package/dist/core/comment-ops.d.ts +3 -0
  159. package/dist/core/comment-ops.d.ts.map +1 -0
  160. package/dist/core/comment-ops.js +36 -0
  161. package/dist/core/comment-ops.js.map +1 -0
  162. package/dist/core/comments.d.ts +5 -0
  163. package/dist/core/comments.d.ts.map +1 -0
  164. package/dist/core/comments.js +137 -0
  165. package/dist/core/comments.js.map +1 -0
  166. package/dist/core/compact.d.ts +13 -0
  167. package/dist/core/compact.d.ts.map +1 -0
  168. package/dist/core/compact.js +20 -0
  169. package/dist/core/compact.js.map +1 -0
  170. package/dist/core/config.d.ts +8 -0
  171. package/dist/core/config.d.ts.map +1 -0
  172. package/dist/core/config.js +18 -0
  173. package/dist/core/config.js.map +1 -0
  174. package/dist/core/describe.d.ts +3 -0
  175. package/dist/core/describe.d.ts.map +1 -0
  176. package/dist/core/describe.js +94 -0
  177. package/dist/core/describe.js.map +1 -0
  178. package/dist/core/design-guide.d.ts +2 -0
  179. package/dist/core/design-guide.d.ts.map +1 -0
  180. package/dist/core/design-guide.js +115 -0
  181. package/dist/core/design-guide.js.map +1 -0
  182. package/dist/core/diagram-layout.d.ts +64 -0
  183. package/dist/core/diagram-layout.d.ts.map +1 -0
  184. package/dist/core/diagram-layout.js +238 -0
  185. package/dist/core/diagram-layout.js.map +1 -0
  186. package/dist/core/diagram-ops.d.ts +165 -0
  187. package/dist/core/diagram-ops.d.ts.map +1 -0
  188. package/dist/core/diagram-ops.js +46 -0
  189. package/dist/core/diagram-ops.js.map +1 -0
  190. package/dist/core/entry.d.ts +3 -0
  191. package/dist/core/entry.d.ts.map +1 -0
  192. package/dist/core/entry.js +35 -0
  193. package/dist/core/entry.js.map +1 -0
  194. package/dist/core/expand-elements.d.ts +9 -0
  195. package/dist/core/expand-elements.d.ts.map +1 -0
  196. package/dist/core/expand-elements.js +277 -0
  197. package/dist/core/expand-elements.js.map +1 -0
  198. package/dist/core/frame-ops.d.ts +60 -0
  199. package/dist/core/frame-ops.d.ts.map +1 -0
  200. package/dist/core/frame-ops.js +90 -0
  201. package/dist/core/frame-ops.js.map +1 -0
  202. package/dist/core/frames.d.ts +31 -0
  203. package/dist/core/frames.d.ts.map +1 -0
  204. package/dist/core/frames.js +95 -0
  205. package/dist/core/frames.js.map +1 -0
  206. package/dist/core/geometry.d.ts +30 -0
  207. package/dist/core/geometry.d.ts.map +1 -0
  208. package/dist/core/geometry.js +167 -0
  209. package/dist/core/geometry.js.map +1 -0
  210. package/dist/core/layout-check.d.ts +30 -0
  211. package/dist/core/layout-check.d.ts.map +1 -0
  212. package/dist/core/layout-check.js +181 -0
  213. package/dist/core/layout-check.js.map +1 -0
  214. package/dist/core/local-origin.d.ts +4 -0
  215. package/dist/core/local-origin.d.ts.map +1 -0
  216. package/dist/core/local-origin.js +27 -0
  217. package/dist/core/local-origin.js.map +1 -0
  218. package/dist/core/mcp-dispatch.d.ts +9 -0
  219. package/dist/core/mcp-dispatch.d.ts.map +1 -0
  220. package/dist/core/mcp-dispatch.js +741 -0
  221. package/dist/core/mcp-dispatch.js.map +1 -0
  222. package/dist/core/mcp-http.d.ts +3 -0
  223. package/dist/core/mcp-http.d.ts.map +1 -0
  224. package/dist/core/mcp-http.js +38 -0
  225. package/dist/core/mcp-http.js.map +1 -0
  226. package/dist/core/mcp-server.d.ts +19 -0
  227. package/dist/core/mcp-server.d.ts.map +1 -0
  228. package/dist/core/mcp-server.js +57 -0
  229. package/dist/core/mcp-server.js.map +1 -0
  230. package/dist/core/mcp-tools.d.ts +3 -0
  231. package/dist/core/mcp-tools.d.ts.map +1 -0
  232. package/dist/core/mcp-tools.js +723 -0
  233. package/dist/core/mcp-tools.js.map +1 -0
  234. package/dist/core/normalize.d.ts +26 -0
  235. package/dist/core/normalize.d.ts.map +1 -0
  236. package/dist/core/normalize.js +134 -0
  237. package/dist/core/normalize.js.map +1 -0
  238. package/dist/core/obsidian-md.d.ts +4 -0
  239. package/dist/core/obsidian-md.d.ts.map +1 -0
  240. package/dist/core/obsidian-md.js +227 -0
  241. package/dist/core/obsidian-md.js.map +1 -0
  242. package/dist/core/pidfile.d.ts +5 -0
  243. package/dist/core/pidfile.d.ts.map +1 -0
  244. package/dist/core/pidfile.js +51 -0
  245. package/dist/core/pidfile.js.map +1 -0
  246. package/dist/core/png-scene.d.ts +4 -0
  247. package/dist/core/png-scene.d.ts.map +1 -0
  248. package/dist/core/png-scene.js +176 -0
  249. package/dist/core/png-scene.js.map +1 -0
  250. package/dist/core/render/excalidraw-node/dom.d.ts +29 -0
  251. package/dist/core/render/excalidraw-node/dom.d.ts.map +1 -0
  252. package/dist/core/render/excalidraw-node/dom.js +132 -0
  253. package/dist/core/render/excalidraw-node/dom.js.map +1 -0
  254. package/dist/core/render/excalidraw-node/index.d.ts +11 -0
  255. package/dist/core/render/excalidraw-node/index.d.ts.map +1 -0
  256. package/dist/core/render/excalidraw-node/index.js +77 -0
  257. package/dist/core/render/excalidraw-node/index.js.map +1 -0
  258. package/dist/core/render/fonts.d.ts +34 -0
  259. package/dist/core/render/fonts.d.ts.map +1 -0
  260. package/dist/core/render/fonts.js +133 -0
  261. package/dist/core/render/fonts.js.map +1 -0
  262. package/dist/core/render/index.d.ts +40 -0
  263. package/dist/core/render/index.d.ts.map +1 -0
  264. package/dist/core/render/index.js +135 -0
  265. package/dist/core/render/index.js.map +1 -0
  266. package/dist/core/render/png-worker.d.ts +2 -0
  267. package/dist/core/render/png-worker.d.ts.map +1 -0
  268. package/dist/core/render/png-worker.js +65 -0
  269. package/dist/core/render/png-worker.js.map +1 -0
  270. package/dist/core/render/png.d.ts +15 -0
  271. package/dist/core/render/png.d.ts.map +1 -0
  272. package/dist/core/render/png.js +128 -0
  273. package/dist/core/render/png.js.map +1 -0
  274. package/dist/core/render/text-metrics.d.ts +2 -0
  275. package/dist/core/render/text-metrics.d.ts.map +1 -0
  276. package/dist/core/render/text-metrics.js +136 -0
  277. package/dist/core/render/text-metrics.js.map +1 -0
  278. package/dist/core/request-canvas.d.ts +9 -0
  279. package/dist/core/request-canvas.d.ts.map +1 -0
  280. package/dist/core/request-canvas.js +2 -0
  281. package/dist/core/request-canvas.js.map +1 -0
  282. package/dist/core/request-headers.d.ts +5 -0
  283. package/dist/core/request-headers.d.ts.map +1 -0
  284. package/dist/core/request-headers.js +80 -0
  285. package/dist/core/request-headers.js.map +1 -0
  286. package/dist/core/scene-input.d.ts +2 -0
  287. package/dist/core/scene-input.d.ts.map +1 -0
  288. package/dist/core/scene-input.js +11 -0
  289. package/dist/core/scene-input.js.map +1 -0
  290. package/dist/core/scene-io.d.ts +16 -0
  291. package/dist/core/scene-io.d.ts.map +1 -0
  292. package/dist/core/scene-io.js +95 -0
  293. package/dist/core/scene-io.js.map +1 -0
  294. package/dist/core/share-url.d.ts +3 -0
  295. package/dist/core/share-url.d.ts.map +1 -0
  296. package/dist/core/share-url.js +77 -0
  297. package/dist/core/share-url.js.map +1 -0
  298. package/dist/core/spawn.d.ts +41 -0
  299. package/dist/core/spawn.d.ts.map +1 -0
  300. package/dist/core/spawn.js +153 -0
  301. package/dist/core/spawn.js.map +1 -0
  302. package/dist/core/version.d.ts +2 -0
  303. package/dist/core/version.d.ts.map +1 -0
  304. package/dist/core/version.js +14 -0
  305. package/dist/core/version.js.map +1 -0
  306. package/dist/frontend/assets/Assistant-Bold-gm-uSS1B.woff2 +0 -0
  307. package/dist/frontend/assets/Assistant-Medium-DrcxCXg3.woff2 +0 -0
  308. package/dist/frontend/assets/Assistant-Regular-DVxZuzxb.woff2 +0 -0
  309. package/dist/frontend/assets/Assistant-SemiBold-SCI4bEL9.woff2 +0 -0
  310. package/dist/frontend/assets/Tableau10-CvOaoHrI.js +1 -0
  311. package/dist/frontend/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  312. package/dist/frontend/assets/abnfDiagram-VCTEODGH-CO_aNPe5.js +1 -0
  313. package/dist/frontend/assets/advancedFormat-DE2dNp0u.js +1 -0
  314. package/dist/frontend/assets/ar-SA-G6X2FPQ2-Bq4yiKbc.js +10 -0
  315. package/dist/frontend/assets/arc--vhPzIZC.js +1 -0
  316. package/dist/frontend/assets/architectureDiagram-5GKGNRK7-aHYJQElw.js +36 -0
  317. package/dist/frontend/assets/array-BKyUJesY.js +1 -0
  318. package/dist/frontend/assets/az-AZ-76LH7QW2-BB3yat67.js +1 -0
  319. package/dist/frontend/assets/band-dPffDWoQ.js +1 -0
  320. package/dist/frontend/assets/bg-BG-XCXSNQG7-DmC2FjQc.js +5 -0
  321. package/dist/frontend/assets/blockDiagram-68f4deed-Bn83vchM.js +118 -0
  322. package/dist/frontend/assets/blockDiagram-NRAW4CY4-CxaW-TzC.js +129 -0
  323. package/dist/frontend/assets/bn-BD-2XOGV67Q-DpCbZMS6.js +5 -0
  324. package/dist/frontend/assets/c4Diagram-15b5d702-Bq7Ko0Vs.js +10 -0
  325. package/dist/frontend/assets/c4Diagram-UCG6FXSJ-Dh883fAO.js +38 -0
  326. package/dist/frontend/assets/ca-ES-6MX7JW3Y-CBOshpbV.js +8 -0
  327. package/dist/frontend/assets/channel-DYvM7vRx.js +1 -0
  328. package/dist/frontend/assets/chunk-2Q5K7J3B-DaFhLtFc.js +1 -0
  329. package/dist/frontend/assets/chunk-5VM5RSS4-CyLfaWw7.js +15 -0
  330. package/dist/frontend/assets/chunk-F27PBJKO-BHNc-edD.js +1 -0
  331. package/dist/frontend/assets/chunk-G27WJ6UU-BBKiZxqf.js +231 -0
  332. package/dist/frontend/assets/chunk-JWPE2WC7-7twsn51D.js +1 -0
  333. package/dist/frontend/assets/chunk-LCL6LL3I-BTwZuXJ6.js +206 -0
  334. package/dist/frontend/assets/chunk-POPQ4Y6H-CaHDxqyV.js +1 -0
  335. package/dist/frontend/assets/chunk-SVP7TREG-B8-zByXy.js +88 -0
  336. package/dist/frontend/assets/chunk-XXDRQBXY-DQLro-7R.js +1 -0
  337. package/dist/frontend/assets/classDiagram-DTDB5LWJ-Dpwx6IJK.js +1 -0
  338. package/dist/frontend/assets/classDiagram-d40c83e7-BPxlcZuc.js +2 -0
  339. package/dist/frontend/assets/classDiagram-v2-JRS7N3AN-Dpwx6IJK.js +1 -0
  340. package/dist/frontend/assets/classDiagram-v2-d5a6b087-Cyz34qAK.js +2 -0
  341. package/dist/frontend/assets/clone-Iw0eB1Cb.js +1 -0
  342. package/dist/frontend/assets/cose-bilkent-JH36ORCC-C4ZX1Xvi.js +1 -0
  343. package/dist/frontend/assets/createText-d213de94-CDH1rzxH.js +7 -0
  344. package/dist/frontend/assets/cs-CZ-2BRQDIVT-CGAN69M4.js +11 -0
  345. package/dist/frontend/assets/cynefin-OW5HDTMX-B8XT9png.js +178 -0
  346. package/dist/frontend/assets/cynefinDiagram-5FMLGOSQ-COTZjqlj.js +62 -0
  347. package/dist/frontend/assets/cytoscape-cose-bilkent-D4yGolDn.js +1 -0
  348. package/dist/frontend/assets/cytoscape.esm-BjAbmLdb.js +331 -0
  349. package/dist/frontend/assets/da-DK-5WZEPLOC-FIDoeOAn.js +5 -0
  350. package/dist/frontend/assets/dagre-3AP2YEHR-v8EtxNwx.js +4 -0
  351. package/dist/frontend/assets/de-DE-XR44H4JA-Hquyrt1G.js +8 -0
  352. package/dist/frontend/assets/defaultLocale-C4B-KCzX.js +1 -0
  353. package/dist/frontend/assets/diagram-S7CK7UJ4-BiwOlZBI.js +30 -0
  354. package/dist/frontend/assets/diagram-UQ7AKVKN-DIfzNs7s.js +41 -0
  355. package/dist/frontend/assets/diagram-VSXAHHWV-kKkEHy5z.js +3 -0
  356. package/dist/frontend/assets/diagram-VX7I27RA-zTp2qGKo.js +24 -0
  357. package/dist/frontend/assets/diagram-Z3DM3KII-hUxSr-QT.js +24 -0
  358. package/dist/frontend/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
  359. package/dist/frontend/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
  360. package/dist/frontend/assets/ebnfDiagram-PWID7BFC-CRwXBVzS.js +1 -0
  361. package/dist/frontend/assets/edges-332bd1c7-CbPhghy3.js +4 -0
  362. package/dist/frontend/assets/el-GR-BZB4AONW-CWRJJANX.js +10 -0
  363. package/dist/frontend/assets/erDiagram-880f2ed8-CY1dU-f9.js +51 -0
  364. package/dist/frontend/assets/erDiagram-SSCWMZ5O-BfDW8Lxf.js +99 -0
  365. package/dist/frontend/assets/es-ES-U4NZUMDT-BwZWIjT5.js +9 -0
  366. package/dist/frontend/assets/eu-ES-A7QVB2H4-B9suQ9BE.js +11 -0
  367. package/dist/frontend/assets/fa-IR-HGAKTJCU-tgrKvE4J.js +8 -0
  368. package/dist/frontend/assets/fi-FI-Z5N7JZ37-Ddoc7R-q.js +6 -0
  369. package/dist/frontend/assets/file-open-002ab408-DIuFHtCF.js +1 -0
  370. package/dist/frontend/assets/file-open-7c801643-684qeFg4.js +1 -0
  371. package/dist/frontend/assets/file-save-3189631c-C1wFhQhH.js +1 -0
  372. package/dist/frontend/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
  373. package/dist/frontend/assets/flowDb-7c981674-DkYacLUz.js +10 -0
  374. package/dist/frontend/assets/flowDiagram-A5DVABFB-CCBuG42p.js +168 -0
  375. package/dist/frontend/assets/flowDiagram-cbd28bf7-DhhBmCsw.js +4 -0
  376. package/dist/frontend/assets/flowDiagram-v2-ffc7f31a-BICbZ5-w.js +1 -0
  377. package/dist/frontend/assets/flowchart-elk-definition-36e2d292-BsyTsM2Q.js +139 -0
  378. package/dist/frontend/assets/fr-FR-RHASNOE6-Bzn_6dcd.js +9 -0
  379. package/dist/frontend/assets/ganttDiagram-04f9e578-CCKAlfpJ.js +257 -0
  380. package/dist/frontend/assets/ganttDiagram-EL5Y4UJY-B8CXkutd.js +292 -0
  381. package/dist/frontend/assets/gitGraphDiagram-21fc4d3e-DBAYEQql.js +70 -0
  382. package/dist/frontend/assets/gitGraphDiagram-WWUBYQGX-Ge5QWjv2.js +106 -0
  383. package/dist/frontend/assets/gl-ES-HMX3MZ6V-vcZHbFum.js +10 -0
  384. package/dist/frontend/assets/graph-87dI2d0Q.js +1 -0
  385. package/dist/frontend/assets/has-D7z5cd7K.js +1 -0
  386. package/dist/frontend/assets/he-IL-6SHJWFNN-CK07fY3l.js +10 -0
  387. package/dist/frontend/assets/hi-IN-IWLTKZ5I-CDZ0p7Jv.js +4 -0
  388. package/dist/frontend/assets/hu-HU-A5ZG7DT2-FH5SLnWy.js +7 -0
  389. package/dist/frontend/assets/id-ID-SAP4L64H-MjXIXb2f.js +10 -0
  390. package/dist/frontend/assets/image-blob-reduce.esm-HwCm7IZ0.js +7 -0
  391. package/dist/frontend/assets/index-6079d271-DiB2AL6F.js +1 -0
  392. package/dist/frontend/assets/index-BcAUh2Nm.css +1 -0
  393. package/dist/frontend/assets/index-Biw8Vgb3.js +320 -0
  394. package/dist/frontend/assets/index-fTyH8AV3.js +354 -0
  395. package/dist/frontend/assets/infoDiagram-4a4f5b27-BOdJmCUU.js +7 -0
  396. package/dist/frontend/assets/infoDiagram-RXCK75RN-CNm06Rxs.js +2 -0
  397. package/dist/frontend/assets/init-Gi6I4Gst.js +1 -0
  398. package/dist/frontend/assets/ishikawaDiagram-5VMMS53U-DoLWy3n2.js +70 -0
  399. package/dist/frontend/assets/it-IT-JPQ66NNP-D3n0iaPa.js +11 -0
  400. package/dist/frontend/assets/ja-JP-DBVTYXUO-ejSNO7M9.js +8 -0
  401. package/dist/frontend/assets/journeyDiagram-29694f62-Cm6qVjA9.js +139 -0
  402. package/dist/frontend/assets/journeyDiagram-EYS64GPL-ByZmvOcj.js +139 -0
  403. package/dist/frontend/assets/kaa-6HZHGXH3-D8l_gwno.js +1 -0
  404. package/dist/frontend/assets/kab-KAB-ZGHBKWFO-CCdAUgdW.js +8 -0
  405. package/dist/frontend/assets/kanban-definition-3QL26DDD-Y5ylzca9.js +89 -0
  406. package/dist/frontend/assets/katex-C5jXJg4s.js +257 -0
  407. package/dist/frontend/assets/kk-KZ-P5N5QNE5-DeuZqHeo.js +1 -0
  408. package/dist/frontend/assets/km-KH-HSX4SM5Z-CiG2k5fk.js +11 -0
  409. package/dist/frontend/assets/ko-KR-MTYHY66A-KQOGYf_l.js +9 -0
  410. package/dist/frontend/assets/ku-TR-6OUDTVRD-iPec9Wpx.js +9 -0
  411. package/dist/frontend/assets/layout-ChryVliD.js +1 -0
  412. package/dist/frontend/assets/layout-chXYHUIV.js +1 -0
  413. package/dist/frontend/assets/line-V0o6yOnB.js +1 -0
  414. package/dist/frontend/assets/linear-BvV3B0Vg.js +1 -0
  415. package/dist/frontend/assets/lt-LT-XHIRWOB4-CATjC2gQ.js +3 -0
  416. package/dist/frontend/assets/lv-LV-5QDEKY6T-BsDP-7Dd.js +7 -0
  417. package/dist/frontend/assets/mindmap-definition-FBJOCRG2-z4KcwRlx.js +96 -0
  418. package/dist/frontend/assets/mindmap-definition-ac74a2e8-C1QU2vBv.js +95 -0
  419. package/dist/frontend/assets/mr-IN-CRQNXWMA-DWJhwvxv.js +13 -0
  420. package/dist/frontend/assets/my-MM-5M5IBNSE-DckXEMN8.js +1 -0
  421. package/dist/frontend/assets/nb-NO-T6EIAALU-HaOR9ZeX.js +10 -0
  422. package/dist/frontend/assets/nl-NL-IS3SIHDZ-ef_ywpFu.js +8 -0
  423. package/dist/frontend/assets/nn-NO-6E72VCQL-Bg7QdVqf.js +8 -0
  424. package/dist/frontend/assets/oc-FR-POXYY2M6-D5HmBPnC.js +8 -0
  425. package/dist/frontend/assets/ordinal-Cboi1Yqb.js +1 -0
  426. package/dist/frontend/assets/pa-IN-N4M65BXN-BHYM0tZp.js +4 -0
  427. package/dist/frontend/assets/path-CbwjOpE9.js +1 -0
  428. package/dist/frontend/assets/pegDiagram-XKGWAZYB-BL0-JiYs.js +1 -0
  429. package/dist/frontend/assets/pica-CHpl3DYP.js +7 -0
  430. package/dist/frontend/assets/pie-b97pL0mM.js +1 -0
  431. package/dist/frontend/assets/pieDiagram-421022e6-DiRybrxD.js +35 -0
  432. package/dist/frontend/assets/pieDiagram-E7YTZNPT-VybkpWmu.js +39 -0
  433. package/dist/frontend/assets/pl-PL-T2D74RX3-uZIVDHgu.js +9 -0
  434. package/dist/frontend/assets/pt-BR-5N22H2LF-dJVfhAeV.js +9 -0
  435. package/dist/frontend/assets/pt-PT-UZXXM6DQ-DjJzcznP.js +9 -0
  436. package/dist/frontend/assets/quadrantDiagram-0957ecba-BHJpECv1.js +7 -0
  437. package/dist/frontend/assets/quadrantDiagram-AXDQQJYC-RAG8nSkZ.js +7 -0
  438. package/dist/frontend/assets/railroadDiagram-O6MQD6OU-lCMtporN.js +1 -0
  439. package/dist/frontend/assets/requirementDiagram-23d650b8-mSFTWSrD.js +52 -0
  440. package/dist/frontend/assets/requirementDiagram-EFPCY7ZU-B8YnTqPO.js +84 -0
  441. package/dist/frontend/assets/ro-RO-JPDTUUEW-B5X8VOmp.js +11 -0
  442. package/dist/frontend/assets/roundRect-0PYZxl1G.js +1 -0
  443. package/dist/frontend/assets/ru-RU-B4JR7IUQ-Czv9kfuz.js +9 -0
  444. package/dist/frontend/assets/sankeyDiagram-23345273-B3g3P-D1.js +8 -0
  445. package/dist/frontend/assets/sankeyDiagram-P5KCCOFB-DRm9HHoQ.js +40 -0
  446. package/dist/frontend/assets/sankeyLinkHorizontal-CgO6js3K.js +1 -0
  447. package/dist/frontend/assets/sequenceDiagram-17ac3bff-DzZiSttS.js +122 -0
  448. package/dist/frontend/assets/sequenceDiagram-WJ2MYXX4-BrSDYDx-.js +162 -0
  449. package/dist/frontend/assets/si-LK-N5RQ5JYF-DFWOZdgD.js +1 -0
  450. package/dist/frontend/assets/sizeCapture-X5ZJPWSS-CbaN7yeQ.js +1 -0
  451. package/dist/frontend/assets/sk-SK-C5VTKIMK-B8VlFn2Z.js +6 -0
  452. package/dist/frontend/assets/sl-SI-NN7IZMDC-CJeSgLEg.js +6 -0
  453. package/dist/frontend/assets/stateDiagram-9c5f0230-Dzm1fyzw.js +1 -0
  454. package/dist/frontend/assets/stateDiagram-HBIQ2CUA-B5Nv-PBX.js +1 -0
  455. package/dist/frontend/assets/stateDiagram-v2-4QOOHH4V-B72hUL6s.js +1 -0
  456. package/dist/frontend/assets/stateDiagram-v2-51a3dcff-DvLAYBjA.js +1 -0
  457. package/dist/frontend/assets/styles-2ab5d517-D6473lhT.js +116 -0
  458. package/dist/frontend/assets/styles-5f03d8d2-CZ5U9u1n.js +160 -0
  459. package/dist/frontend/assets/styles-edf9a4b0-DzQC88FF.js +207 -0
  460. package/dist/frontend/assets/subset-shared.chunk.js +84 -0
  461. package/dist/frontend/assets/subset-worker.chunk.js +1 -0
  462. package/dist/frontend/assets/sv-SE-XGPEYMSR-BKMKxZWF.js +10 -0
  463. package/dist/frontend/assets/svgDrawCommon-3ba9043b-CQsuw6x4.js +1 -0
  464. package/dist/frontend/assets/swimlanes-XN3QIQJK-D6c81JTS.js +1 -0
  465. package/dist/frontend/assets/swimlanesDiagram-VK2B7HYN-SMIGSMWR.js +8 -0
  466. package/dist/frontend/assets/ta-IN-2NMHFXQM-BtPPl3RQ.js +9 -0
  467. package/dist/frontend/assets/th-TH-HPSO5L25-CSjFGi1j.js +2 -0
  468. package/dist/frontend/assets/timeline-definition-24CTP7MA-DTBgPsOR.js +120 -0
  469. package/dist/frontend/assets/timeline-definition-7e6b55e7-D44e8lHF.js +61 -0
  470. package/dist/frontend/assets/tr-TR-DEFEU3FU-BS1kZ0-G.js +7 -0
  471. package/dist/frontend/assets/uk-UA-QMV73CPH--ucRdDwc.js +6 -0
  472. package/dist/frontend/assets/union-DI_iry4-.js +1 -0
  473. package/dist/frontend/assets/vennDiagram-4TSXK5OY-DDIUJU_f.js +34 -0
  474. package/dist/frontend/assets/vi-VN-M7AON7JQ-BcGYkPOn.js +5 -0
  475. package/dist/frontend/assets/wardleyDiagram-VM6X3IG4-TfvrOirV.js +78 -0
  476. package/dist/frontend/assets/xychartDiagram-S5SC5T6Z-DaSdOJbv.js +7 -0
  477. package/dist/frontend/assets/xychartDiagram-b6496bcd-VIsyqEG1.js +7 -0
  478. package/dist/frontend/assets/zh-CN-LNUGB5OW-RL4CyEYU.js +10 -0
  479. package/dist/frontend/assets/zh-HK-E62DVLB3-DKGVR3J1.js +1 -0
  480. package/dist/frontend/assets/zh-TW-RAJ6MFWO-C7djgh-M.js +9 -0
  481. package/dist/frontend/assets/zipObject-Bl99JdSU.js +1 -0
  482. package/dist/frontend/index.html +569 -0
  483. package/dist/index.d.ts +7 -0
  484. package/dist/index.d.ts.map +1 -0
  485. package/dist/index.js +74 -0
  486. package/dist/index.js.map +1 -0
  487. package/dist/render/excalidraw-node.mjs +540 -0
  488. package/dist/server.d.ts +5 -0
  489. package/dist/server.d.ts.map +1 -0
  490. package/dist/server.js +1684 -0
  491. package/dist/server.js.map +1 -0
  492. package/dist/types.d.ts +263 -0
  493. package/dist/types.d.ts.map +1 -0
  494. package/dist/types.js +49 -0
  495. package/dist/types.js.map +1 -0
  496. package/dist/utils/logger.d.ts +4 -0
  497. package/dist/utils/logger.d.ts.map +1 -0
  498. package/dist/utils/logger.js +63 -0
  499. package/dist/utils/logger.js.map +1 -0
  500. package/package.json +127 -4
  501. package/skills/excalidraw-skill/SKILL.md +331 -0
  502. package/skills/excalidraw-skill/evals/evals.json +35 -0
  503. package/skills/excalidraw-skill/references/cheatsheet.md +217 -0
  504. package/src/ai/config.ts +58 -0
  505. package/src/ai/providers/anthropic.ts +62 -0
  506. package/src/ai/providers/openai-compatible.ts +84 -0
  507. package/src/ai/request-settings.ts +50 -0
  508. package/src/ai/routes.ts +157 -0
  509. package/src/ai/runner.ts +80 -0
  510. package/src/ai/sse.ts +40 -0
  511. package/src/ai/system.ts +16 -0
  512. package/src/ai/tools.ts +130 -0
  513. package/src/ai/types.ts +48 -0
  514. package/src/bin.ts +56 -0
  515. package/src/cli/args.ts +97 -0
  516. package/src/cli/commands/ai.ts +40 -0
  517. package/src/cli/commands/arrange.ts +112 -0
  518. package/src/cli/commands/canvases.ts +37 -0
  519. package/src/cli/commands/check.ts +15 -0
  520. package/src/cli/commands/comment.ts +72 -0
  521. package/src/cli/commands/elements.ts +299 -0
  522. package/src/cli/commands/frame.ts +55 -0
  523. package/src/cli/commands/install-skill.ts +116 -0
  524. package/src/cli/commands/layout.ts +14 -0
  525. package/src/cli/commands/render.ts +68 -0
  526. package/src/cli/commands/scene.ts +168 -0
  527. package/src/cli/commands/server.ts +71 -0
  528. package/src/cli/commands/snapshot.ts +45 -0
  529. package/src/cli/image-options.ts +77 -0
  530. package/src/cli/run.ts +123 -0
  531. package/src/cli/util.ts +39 -0
  532. package/src/core/arrow-routing.ts +256 -0
  533. package/src/core/bulk-ops.ts +183 -0
  534. package/src/core/canvas-client.ts +525 -0
  535. package/src/core/canvas-id.ts +8 -0
  536. package/src/core/canvas-persistence.ts +1067 -0
  537. package/src/core/canvas-registry.ts +180 -0
  538. package/src/core/canvas-routes.ts +34 -0
  539. package/src/core/canvas-state.ts +37 -0
  540. package/src/core/canvas.ts +18 -0
  541. package/src/core/comment-ops.ts +36 -0
  542. package/src/core/comments.ts +142 -0
  543. package/src/core/compact.ts +21 -0
  544. package/src/core/config.ts +24 -0
  545. package/src/core/describe.ts +100 -0
  546. package/src/core/design-guide.ts +114 -0
  547. package/src/core/diagram-layout.ts +278 -0
  548. package/src/core/diagram-ops.ts +48 -0
  549. package/src/core/entry.ts +37 -0
  550. package/src/core/expand-elements.ts +316 -0
  551. package/src/core/frame-ops.ts +112 -0
  552. package/src/core/frames.ts +113 -0
  553. package/src/core/geometry.ts +213 -0
  554. package/src/core/layout-check.ts +200 -0
  555. package/src/core/local-origin.ts +27 -0
  556. package/src/core/mcp-dispatch.ts +858 -0
  557. package/src/core/mcp-http.ts +38 -0
  558. package/src/core/mcp-server.ts +72 -0
  559. package/src/core/mcp-tools.ts +725 -0
  560. package/src/core/normalize.ts +158 -0
  561. package/src/core/obsidian-md.ts +231 -0
  562. package/src/core/pidfile.ts +52 -0
  563. package/src/core/png-scene.ts +177 -0
  564. package/src/core/render/excalidraw-node/dom.ts +159 -0
  565. package/src/core/render/excalidraw-node/index.ts +100 -0
  566. package/src/core/render/fonts.ts +173 -0
  567. package/src/core/render/index.ts +198 -0
  568. package/src/core/render/png-worker.ts +75 -0
  569. package/src/core/render/png.ts +148 -0
  570. package/src/core/render/text-metrics.ts +141 -0
  571. package/src/core/request-canvas.ts +10 -0
  572. package/src/core/request-headers.ts +79 -0
  573. package/src/core/scene-input.ts +11 -0
  574. package/src/core/scene-io.ts +125 -0
  575. package/src/core/share-url.ts +99 -0
  576. package/src/core/spawn.ts +186 -0
  577. package/src/core/version.ts +13 -0
  578. package/src/index.ts +86 -0
  579. package/src/server.ts +1873 -0
  580. package/src/types.ts +384 -0
  581. package/src/utils/logger.ts +77 -0
@@ -0,0 +1,725 @@
1
+ import type { Tool } from '@modelcontextprotocol/server';
2
+ import { EXCALIDRAW_ELEMENT_TYPES } from '../types.js';
3
+
4
+ // Shared by export_to_image and get_canvas_screenshot. Rendering happens
5
+ // headless inside the canvas server by default; no browser tab is needed.
6
+ const IMAGE_RENDER_PROPERTIES = {
7
+ background: {
8
+ type: 'boolean',
9
+ description: 'Include the background (default: true)'
10
+ },
11
+ renderer: {
12
+ type: 'string',
13
+ enum: ['auto', 'node', 'browser'],
14
+ description: '"auto" (default) renders headless in the canvas server, no browser needed. "browser" asks an open canvas tab to render with Excalidraw itself (reference rendering, slower).'
15
+ },
16
+ dark: {
17
+ type: 'boolean',
18
+ description: 'Render in dark mode (default: false)'
19
+ },
20
+ scale: {
21
+ type: 'number',
22
+ description: 'PNG pixel scale from 1 to 4 (default: 1)'
23
+ },
24
+ padding: {
25
+ type: 'number',
26
+ description: 'Padding around the drawing in px (default: 10)'
27
+ },
28
+ elementIds: {
29
+ type: 'array',
30
+ items: { type: 'string' },
31
+ description: 'Render only these elements (their bound labels are included)'
32
+ },
33
+ frameId: {
34
+ type: 'string',
35
+ description: 'Render a single frame, clipped to its bounds'
36
+ },
37
+ embedScene: {
38
+ type: 'boolean',
39
+ description: 'Embed the editable scene in PNG metadata (default: false; PNG only)'
40
+ }
41
+ };
42
+
43
+ // Tool definitions
44
+ export const tools: Tool[] = [
45
+ {
46
+ name: 'create_element',
47
+ description: 'Create a new Excalidraw element. For arrows, use startElementId/endElementId to bind to shapes (auto-routes to edges).',
48
+ inputSchema: {
49
+ type: 'object',
50
+ properties: {
51
+ id: { type: 'string', description: 'Custom element ID (optional, auto-generated if omitted). Use with startElementId/endElementId in batch_create_elements.' },
52
+ type: {
53
+ type: 'string',
54
+ enum: Object.values(EXCALIDRAW_ELEMENT_TYPES)
55
+ },
56
+ x: { type: 'number' },
57
+ y: { type: 'number' },
58
+ width: { type: 'number' },
59
+ height: { type: 'number' },
60
+ backgroundColor: { type: 'string' },
61
+ strokeColor: { type: 'string' },
62
+ strokeWidth: { type: 'number' },
63
+ strokeStyle: { type: 'string', description: 'Stroke style: solid, dashed, dotted' },
64
+ roughness: { type: 'number' },
65
+ opacity: { type: 'number' },
66
+ text: { type: 'string', description: 'On a shape or arrow: its label, drawn inside it, centered and moving with it. For free-standing text use type text.' },
67
+ fontSize: { type: 'number' },
68
+ fontFamily: { type: ['string', 'number'], description: 'Font family: virgil/hand/handwritten (1), helvetica/sans/sans-serif (2), cascadia/mono/monospace (3), excalifont (5), nunito (6), lilita/lilita one (7), comic shanns/comic (8), or numeric ID' },
69
+ elbowed: { type: 'boolean', description: 'For arrows between two shapes (startElementId and endElementId): run at right angles round the other shapes instead of a straight line. Re-route later with route_arrows.' },
70
+ startElementId: { type: 'string', description: 'For arrows: ID of the element to bind the arrow start to. Arrow auto-routes to element edge.' },
71
+ endElementId: { type: 'string', description: 'For arrows: ID of the element to bind the arrow end to. Arrow auto-routes to element edge.' },
72
+ endArrowhead: { type: 'string', description: 'Arrowhead style at end: arrow, bar, dot, triangle, or null' },
73
+ startArrowhead: { type: 'string', description: 'Arrowhead style at start: arrow, bar, dot, triangle, or null' }
74
+ },
75
+ required: ['type', 'x', 'y']
76
+ }
77
+ },
78
+ {
79
+ name: 'update_element',
80
+ description: 'Update an existing Excalidraw element',
81
+ inputSchema: {
82
+ type: 'object',
83
+ properties: {
84
+ id: { type: 'string' },
85
+ frame: { type: 'string', description: 'Frame name or id (see list_frames): positions become frame-relative.' },
86
+ type: {
87
+ type: 'string',
88
+ enum: Object.values(EXCALIDRAW_ELEMENT_TYPES)
89
+ },
90
+ x: { type: 'number' },
91
+ y: { type: 'number' },
92
+ width: { type: 'number' },
93
+ height: { type: 'number' },
94
+ backgroundColor: { type: 'string' },
95
+ strokeColor: { type: 'string' },
96
+ strokeWidth: { type: 'number' },
97
+ strokeStyle: { type: 'string' },
98
+ roughness: { type: 'number' },
99
+ opacity: { type: 'number' },
100
+ text: { type: 'string' },
101
+ fontSize: { type: 'number' },
102
+ fontFamily: { type: ['string', 'number'], description: 'Font family: virgil/hand/handwritten (1), helvetica/sans/sans-serif (2), cascadia/mono/monospace (3), excalifont (5), nunito (6), lilita/lilita one (7), comic shanns/comic (8), or numeric ID' }
103
+ },
104
+ required: ['id']
105
+ }
106
+ },
107
+ {
108
+ name: 'delete_element',
109
+ description: 'Delete an Excalidraw element',
110
+ inputSchema: {
111
+ type: 'object',
112
+ properties: {
113
+ id: { type: 'string' }
114
+ },
115
+ required: ['id']
116
+ }
117
+ },
118
+ {
119
+ name: 'delete_elements',
120
+ description: 'Delete several elements in one call, with the text labels bound to them. Frames are not deleted here.',
121
+ inputSchema: {
122
+ type: 'object',
123
+ properties: { ids: { type: 'array', items: { type: 'string' }, minItems: 1, description: 'IDs of the elements to delete' } },
124
+ required: ['ids']
125
+ }
126
+ },
127
+ {
128
+ name: 'move_elements',
129
+ description: 'Move elements by dx, dy (canvas coordinates) together with their labels and groups (all of an outer group, as selecting one does). An arrow joined to a moved shape follows it; an arrow not joined to anything is moved too.',
130
+ inputSchema: {
131
+ type: 'object',
132
+ properties: {
133
+ ids: { type: 'array', items: { type: 'string' }, minItems: 1 },
134
+ dx: { type: 'number', description: 'Horizontal distance (default 0)' },
135
+ dy: { type: 'number', description: 'Vertical distance (default 0)' }
136
+ },
137
+ required: ['ids']
138
+ }
139
+ },
140
+ {
141
+ name: 'layout_diagram',
142
+ description: 'Draw a whole diagram from a description of what it contains, without choosing any coordinates: the shapes are placed in layers, sized to their labels, and joined by right-angled arrows that go round the other shapes. Use it for flowcharts, architecture diagrams, ER diagrams, process flows and decision trees, and put what you want to say in nodes, edges and groups. Node kinds: box (default), decision (diamond), terminator (start/end), database, note, and cards: table (title + rows of {name, value: type, marker: PK/FK}), step (title + rows like {name: "Reads", value: "orders"}, optional number) and json (title + a json value shown as text). Edges join node ids and can have a label and a solid, dashed or dotted style (solid for data relationships, dashed for what the code decides at run time). Groups draw a labelled zone around their nodes. What cannot be drawn (an edge to an unknown node, a repeated edge) is left out and listed in `warnings`. The reply gives each node\'s shape id and any layout problems found. Without x/y or a frame the diagram goes to the right of what is there. If an id is already on the canvas, a prefix is put in front of every id and returned as `idPrefix`.',
143
+ inputSchema: {
144
+ type: 'object',
145
+ properties: {
146
+ nodes: {
147
+ type: 'array', minItems: 1, maxItems: 100,
148
+ items: {
149
+ type: 'object',
150
+ properties: {
151
+ id: { type: 'string', description: 'Unique, letters digits . _ - only; edges and groups refer to it' },
152
+ label: { type: 'string', description: 'A few words (default: the id). For a card, its title.' },
153
+ kind: { type: 'string', enum: ['box', 'decision', 'terminator', 'database', 'note', 'table', 'step', 'json'] },
154
+ rows: { type: 'array', maxItems: 60, items: { type: 'object', properties: { name: { type: 'string' }, value: { type: 'string' }, marker: { type: 'string' } }, required: ['name'] } },
155
+ json: { description: 'For kind json: the value to show' },
156
+ color: { type: 'string', enum: ['blue', 'green', 'red', 'purple', 'orange', 'cyan', 'gray'] },
157
+ number: { description: 'For kind step: its number' }
158
+ },
159
+ required: ['id']
160
+ }
161
+ },
162
+ edges: { type: 'array', maxItems: 200, items: { type: 'object', properties: { from: { type: 'string' }, to: { type: 'string' }, label: { type: 'string' }, style: { type: 'string', enum: ['solid', 'dashed', 'dotted'] } }, required: ['from', 'to'] } },
163
+ groups: { type: 'array', maxItems: 20, items: { type: 'object', properties: { id: { type: 'string' }, label: { type: 'string' }, nodes: { type: 'array', items: { type: 'string' } }, color: { type: 'string', enum: ['blue', 'green', 'red', 'purple', 'orange', 'cyan', 'gray'] } }, required: ['label', 'nodes'] } },
164
+ direction: { type: 'string', enum: ['right', 'down'], description: 'Default down' },
165
+ spacing: { type: 'number', minimum: 20, maximum: 200, description: 'Space between shapes, 20 to 200 (default 60)' },
166
+ idPrefix: { type: 'string', maxLength: 20, description: 'Put in front of every element id' },
167
+ x: { type: 'number' },
168
+ y: { type: 'number' },
169
+ frame: { type: 'string', description: 'Draw on this frame (name or id); positions are relative to its top-left corner' }
170
+ },
171
+ required: ['nodes']
172
+ }
173
+ },
174
+ {
175
+ name: 'check_layout',
176
+ description: 'Look for what makes the diagram hard to read, without drawing it: labels that do not fit their shape, shapes or text on top of each other, arrows passing through shapes, boxes far larger than their text, shapes too close, elements clipped by their frame, arrows joined to nothing. Each issue names the elements and what to do. Run it after drawing and fix what it reports. Sizes of text the browser has not measured are estimates.',
177
+ inputSchema: {
178
+ type: 'object',
179
+ properties: { frame: { type: 'string', description: 'Check only this frame (name or id); default the whole canvas' } }
180
+ }
181
+ },
182
+ {
183
+ name: 'route_arrows',
184
+ description: 'Route arrows at right angles round the other shapes, and mark them elbowed so they stay routed when a shape they join is moved. Use it after a layout has changed, or to tidy curved or tangled connectors. With no ids it re-routes every elbowed arrow. An arrow needs a shape at each end; the reply lists any that were skipped and why.',
185
+ inputSchema: {
186
+ type: 'object',
187
+ properties: { ids: { type: 'array', items: { type: 'string' }, minItems: 1, description: 'Arrow ids (default: all elbowed arrows)' } }
188
+ }
189
+ },
190
+ {
191
+ name: 'fit_to_text',
192
+ description: 'Grow shapes so the text inside fits (a label that overflows its box). Never shrinks a shape; a shape whose label already fits is left alone. Arrows joined to it follow.',
193
+ inputSchema: {
194
+ type: 'object',
195
+ properties: { ids: { type: 'array', items: { type: 'string' }, minItems: 1 } },
196
+ required: ['ids']
197
+ }
198
+ },
199
+ {
200
+ name: 'reorder_elements',
201
+ description: 'Send elements to the back or the front of the stacking order, with their labels. Use it when a new background covers existing shapes or text.',
202
+ inputSchema: {
203
+ type: 'object',
204
+ properties: {
205
+ ids: { type: 'array', items: { type: 'string' }, minItems: 1 },
206
+ to: { type: 'string', enum: ['back', 'front'] }
207
+ },
208
+ required: ['ids', 'to']
209
+ }
210
+ },
211
+ {
212
+ name: 'move_elements_to_frame',
213
+ description: 'Put existing elements (with their labels and all of their groups) on a frame without moving them, like dragging them into it. The frame grows right and down to hold them; anything left of or above it stays outside, and the reply counts it. Elements that were on another frame leave it (counted as reassigned).',
214
+ inputSchema: {
215
+ type: 'object',
216
+ properties: {
217
+ ids: { type: 'array', items: { type: 'string' }, minItems: 1 },
218
+ frame: { type: 'string', description: 'Frame name or id (see list_frames)' }
219
+ },
220
+ required: ['ids', 'frame']
221
+ }
222
+ },
223
+ {
224
+ name: 'query_elements',
225
+ description: 'Query Excalidraw elements with optional filters. A large canvas is read in pages: with limit, offset or fields the result is {total, offset, count, elements}; without them it is the plain list.',
226
+ inputSchema: {
227
+ type: 'object',
228
+ properties: {
229
+ limit: { type: 'integer', minimum: 1, maximum: 1000, description: 'Return at most this many elements' },
230
+ offset: { type: 'integer', minimum: 0, description: 'Skip this many elements (for the next page)' },
231
+ fields: { type: 'array', items: { type: 'string' }, description: 'Return only these properties of each element (id is always included), for example ["type","x","y","width","height"]' },
232
+ frame: { type: 'string', description: 'Frame name or id (see list_frames): positions become frame-relative.' },
233
+ type: {
234
+ type: 'string',
235
+ enum: Object.values(EXCALIDRAW_ELEMENT_TYPES)
236
+ },
237
+ filter: {
238
+ type: 'object',
239
+ additionalProperties: true
240
+ },
241
+ bbox: {
242
+ type: 'object',
243
+ description: 'Bounding box filter — only return elements whose origin (x, y) falls within the given coordinate range',
244
+ properties: {
245
+ x_min: { type: 'number' },
246
+ x_max: { type: 'number' },
247
+ y_min: { type: 'number' },
248
+ y_max: { type: 'number' }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ },
254
+ {
255
+ name: 'get_resource',
256
+ description: 'Get an Excalidraw resource',
257
+ inputSchema: {
258
+ type: 'object',
259
+ properties: {
260
+ resource: {
261
+ type: 'string',
262
+ enum: ['scene', 'library', 'theme', 'elements']
263
+ }
264
+ },
265
+ required: ['resource']
266
+ }
267
+ },
268
+ {
269
+ name: 'group_elements',
270
+ description: 'Group multiple elements together',
271
+ inputSchema: {
272
+ type: 'object',
273
+ properties: {
274
+ elementIds: {
275
+ type: 'array',
276
+ items: { type: 'string' }
277
+ }
278
+ },
279
+ required: ['elementIds']
280
+ }
281
+ },
282
+ {
283
+ name: 'ungroup_elements',
284
+ description: 'Ungroup a group of elements',
285
+ inputSchema: {
286
+ type: 'object',
287
+ properties: {
288
+ groupId: { type: 'string' }
289
+ },
290
+ required: ['groupId']
291
+ }
292
+ },
293
+ {
294
+ name: 'align_elements',
295
+ description: 'Align elements to a specific position',
296
+ inputSchema: {
297
+ type: 'object',
298
+ properties: {
299
+ elementIds: {
300
+ type: 'array',
301
+ items: { type: 'string' }
302
+ },
303
+ alignment: {
304
+ type: 'string',
305
+ enum: ['left', 'center', 'right', 'top', 'middle', 'bottom']
306
+ }
307
+ },
308
+ required: ['elementIds', 'alignment']
309
+ }
310
+ },
311
+ {
312
+ name: 'distribute_elements',
313
+ description: 'Distribute elements evenly',
314
+ inputSchema: {
315
+ type: 'object',
316
+ properties: {
317
+ elementIds: {
318
+ type: 'array',
319
+ items: { type: 'string' }
320
+ },
321
+ direction: {
322
+ type: 'string',
323
+ enum: ['horizontal', 'vertical']
324
+ }
325
+ },
326
+ required: ['elementIds', 'direction']
327
+ }
328
+ },
329
+ {
330
+ name: 'lock_elements',
331
+ description: 'Lock elements to prevent modification',
332
+ inputSchema: {
333
+ type: 'object',
334
+ properties: {
335
+ elementIds: {
336
+ type: 'array',
337
+ items: { type: 'string' }
338
+ }
339
+ },
340
+ required: ['elementIds']
341
+ }
342
+ },
343
+ {
344
+ name: 'unlock_elements',
345
+ description: 'Unlock elements to allow modification',
346
+ inputSchema: {
347
+ type: 'object',
348
+ properties: {
349
+ elementIds: {
350
+ type: 'array',
351
+ items: { type: 'string' }
352
+ }
353
+ },
354
+ required: ['elementIds']
355
+ }
356
+ },
357
+ {
358
+ name: 'create_from_mermaid',
359
+ description: 'Convert a Mermaid diagram to Excalidraw elements and render them on the canvas',
360
+ inputSchema: {
361
+ type: 'object',
362
+ properties: {
363
+ mermaidDiagram: {
364
+ type: 'string',
365
+ description: 'The Mermaid diagram definition (e.g., "graph TD; A-->B; B-->C;")'
366
+ },
367
+ config: {
368
+ type: 'object',
369
+ description: 'Optional Mermaid configuration',
370
+ properties: {
371
+ startOnLoad: { type: 'boolean' },
372
+ flowchart: {
373
+ type: 'object',
374
+ properties: {
375
+ curve: { type: 'string', enum: ['linear', 'basis'] }
376
+ }
377
+ },
378
+ themeVariables: {
379
+ type: 'object',
380
+ properties: {
381
+ fontSize: { type: 'string' }
382
+ }
383
+ },
384
+ maxEdges: { type: 'number' },
385
+ maxTextSize: { type: 'number' }
386
+ }
387
+ }
388
+ },
389
+ required: ['mermaidDiagram']
390
+ }
391
+ },
392
+ {
393
+ name: 'batch_create_elements',
394
+ description: 'Create multiple Excalidraw elements at once. For arrows, use startElementId/endElementId to bind arrows to shapes — Excalidraw auto-routes to element edges. Assign custom id to shapes so arrows can reference them.',
395
+ inputSchema: {
396
+ type: 'object',
397
+ properties: {
398
+ frame: { type: 'string', description: 'Frame name or id (see list_frames): positions become frame-relative and the frame grows to hold the new shapes.' },
399
+ elements: {
400
+ type: 'array',
401
+ items: {
402
+ type: 'object',
403
+ properties: {
404
+ id: { type: 'string', description: 'Custom element ID. Arrows can reference this via startElementId/endElementId.' },
405
+ type: {
406
+ type: 'string',
407
+ enum: Object.values(EXCALIDRAW_ELEMENT_TYPES)
408
+ },
409
+ x: { type: 'number' },
410
+ y: { type: 'number' },
411
+ width: { type: 'number' },
412
+ height: { type: 'number' },
413
+ backgroundColor: { type: 'string' },
414
+ strokeColor: { type: 'string' },
415
+ strokeWidth: { type: 'number' },
416
+ strokeStyle: { type: 'string', description: 'Stroke style: solid, dashed, dotted' },
417
+ roughness: { type: 'number' },
418
+ opacity: { type: 'number' },
419
+ text: { type: 'string', description: 'On a shape or arrow: its label, drawn inside it, centered and moving with it. For free-standing text use type text.' },
420
+ fontSize: { type: 'number' },
421
+ fontFamily: { type: ['string', 'number'], description: 'Font family: virgil/hand/handwritten (1), helvetica/sans/sans-serif (2), cascadia/mono/monospace (3), excalifont (5), nunito (6), lilita/lilita one (7), comic shanns/comic (8), or numeric ID' },
422
+ elbowed: { type: 'boolean', description: 'For arrows between two shapes (startElementId and endElementId): run at right angles round the other shapes instead of a straight line. Re-route later with route_arrows.' },
423
+ startElementId: { type: 'string', description: 'For arrows: ID of element to bind arrow start to' },
424
+ endElementId: { type: 'string', description: 'For arrows: ID of element to bind arrow end to' },
425
+ endArrowhead: { type: 'string', description: 'Arrowhead style at end: arrow, bar, dot, triangle, or null' },
426
+ startArrowhead: { type: 'string', description: 'Arrowhead style at start: arrow, bar, dot, triangle, or null' }
427
+ },
428
+ required: ['type', 'x', 'y']
429
+ }
430
+ }
431
+ },
432
+ required: ['elements']
433
+ }
434
+ },
435
+ {
436
+ name: 'get_element',
437
+ description: 'Get a single Excalidraw element by ID',
438
+ inputSchema: {
439
+ type: 'object',
440
+ properties: {
441
+ id: { type: 'string', description: 'The element ID' },
442
+ frame: { type: 'string', description: 'Frame name or id (see list_frames): the position is returned frame-relative.' }
443
+ },
444
+ required: ['id']
445
+ }
446
+ },
447
+ {
448
+ name: 'get_selection',
449
+ description: 'Get the IDs of currently selected elements on the canvas',
450
+ inputSchema: {
451
+ type: 'object',
452
+ properties: {}
453
+ }
454
+ },
455
+ {
456
+ name: 'clear_canvas',
457
+ description: 'Clear all elements from the canvas',
458
+ inputSchema: {
459
+ type: 'object',
460
+ properties: {}
461
+ }
462
+ },
463
+ {
464
+ name: 'export_scene',
465
+ description: 'Export the current canvas to .excalidraw JSON format. Optionally write to a file; a path ending in .md is written in the Obsidian Excalidraw plugin format (.excalidraw.md).',
466
+ inputSchema: {
467
+ type: 'object',
468
+ properties: {
469
+ filePath: {
470
+ type: 'string',
471
+ description: 'Optional file path to write the scene to (.excalidraw for raw JSON, .excalidraw.md for the Obsidian Excalidraw plugin format)'
472
+ }
473
+ }
474
+ }
475
+ },
476
+ {
477
+ name: 'import_scene',
478
+ description: 'Import elements and image files from .excalidraw JSON, Obsidian .excalidraw.md, a PNG with an embedded Excalidraw scene, or raw JSON data',
479
+ inputSchema: {
480
+ type: 'object',
481
+ properties: {
482
+ filePath: {
483
+ type: 'string',
484
+ description: 'Path to a .excalidraw JSON, Obsidian .excalidraw.md, or embedded-scene PNG file (such as .excalidraw.png)'
485
+ },
486
+ data: {
487
+ type: 'string',
488
+ description: 'Raw .excalidraw JSON string (alternative to filePath)'
489
+ },
490
+ mode: {
491
+ type: 'string',
492
+ enum: ['replace', 'merge'],
493
+ description: '"replace" clears canvas first, "merge" appends to existing elements'
494
+ }
495
+ },
496
+ required: ['mode']
497
+ }
498
+ },
499
+ {
500
+ name: 'export_to_image',
501
+ description: 'Export the current canvas to a PNG or SVG image. Renders headless in the canvas server (no browser tab needed); SVGs embed fonts. Set embedScene: true for a PNG that is also editable in Excalidraw.',
502
+ inputSchema: {
503
+ type: 'object',
504
+ properties: {
505
+ format: {
506
+ type: 'string',
507
+ enum: ['png', 'svg'],
508
+ description: 'Image format'
509
+ },
510
+ filePath: {
511
+ type: 'string',
512
+ description: 'Optional file path to save the image (.png or .svg, matching format)'
513
+ },
514
+ ...IMAGE_RENDER_PROPERTIES
515
+ },
516
+ required: ['format']
517
+ }
518
+ },
519
+ {
520
+ name: 'duplicate_elements',
521
+ description: 'Copy elements with a configurable offset. The text labels and groups of the elements come along, and what pointed between the originals (label to shape, arrow to shape) points between the copies. Returns the new ids. With frame, the copies are put on that frame.',
522
+ inputSchema: {
523
+ type: 'object',
524
+ properties: {
525
+ elementIds: {
526
+ type: 'array',
527
+ items: { type: 'string' },
528
+ description: 'IDs of elements to duplicate'
529
+ },
530
+ offsetX: { type: 'number', description: 'Horizontal offset (default: 20)' },
531
+ offsetY: { type: 'number', description: 'Vertical offset (default: 20)' },
532
+ frame: { type: 'string', description: 'Put the copies on this frame (name or id); it grows to hold them. Positions are canvas coordinates plus the offset.' }
533
+ },
534
+ required: ['elementIds']
535
+ }
536
+ },
537
+ {
538
+ name: 'snapshot_scene',
539
+ description: 'Save a named snapshot of the current canvas state for later restoration',
540
+ inputSchema: {
541
+ type: 'object',
542
+ properties: {
543
+ name: {
544
+ type: 'string',
545
+ description: 'Name for this snapshot'
546
+ }
547
+ },
548
+ required: ['name']
549
+ }
550
+ },
551
+ {
552
+ name: 'restore_snapshot',
553
+ description: 'Restore the canvas from a previously saved named snapshot',
554
+ inputSchema: {
555
+ type: 'object',
556
+ properties: {
557
+ name: {
558
+ type: 'string',
559
+ description: 'Name of the snapshot to restore'
560
+ }
561
+ },
562
+ required: ['name']
563
+ }
564
+ },
565
+ {
566
+ name: 'describe_scene',
567
+ description: 'Get an AI-readable description of the current canvas: element types, positions, connections, labels, spatial layout, and bounding box. Use this to understand what is on the canvas before making changes. With frame, describe only that frame, frame-relative.',
568
+ inputSchema: {
569
+ type: 'object',
570
+ properties: {
571
+ frame: { type: 'string', description: 'Frame name or id (see list_frames)' }
572
+ }
573
+ }
574
+ },
575
+ {
576
+ name: 'get_canvas_screenshot',
577
+ description: 'Render the current canvas to a PNG and return it as an image. Renders headless in the canvas server (no browser tab needed). Use this to visually verify what the diagram looks like.',
578
+ inputSchema: {
579
+ type: 'object',
580
+ properties: {
581
+ ...IMAGE_RENDER_PROPERTIES
582
+ }
583
+ }
584
+ },
585
+ {
586
+ name: 'read_diagram_guide',
587
+ description: 'Returns a comprehensive design guide for creating beautiful Excalidraw diagrams: color palette, sizing rules, layout patterns, arrow binding best practices, diagram templates, and anti-patterns. Call this before creating diagrams to produce professional results.',
588
+ inputSchema: {
589
+ type: 'object',
590
+ properties: {}
591
+ }
592
+ },
593
+ {
594
+ name: 'export_to_excalidraw_url',
595
+ description: 'Export the current canvas to a shareable excalidraw.com URL. The diagram is encrypted and uploaded; anyone with the URL can view it. Returns the shareable link.',
596
+ inputSchema: {
597
+ type: 'object',
598
+ properties: {}
599
+ }
600
+ },
601
+ {
602
+ name: 'list_frames',
603
+ description: 'List the canvas frames in tab order: id, name, position (1 = first tab), canvasX/canvasY (canvas coordinates, for orientation only), size, shape count, open comments, and any frames it overlaps. Tools that take a frame use positions relative to its top-left corner (0, 0, never negative); the others use canvas coordinates. Work one frame at a time on a large canvas.',
604
+ inputSchema: { type: 'object', properties: {} }
605
+ },
606
+ {
607
+ name: 'add_frame',
608
+ description: 'Add a frame (a tab) last in the tab order, in free space to the right of the existing content. With around, the frame is fitted around those elements (and their labels and groups) and they are put on it, without moving.',
609
+ inputSchema: {
610
+ type: 'object',
611
+ properties: {
612
+ name: { type: 'string', description: 'Unique frame name' },
613
+ width: { type: 'number', exclusiveMinimum: 0, description: 'Default 1600' },
614
+ height: { type: 'number', exclusiveMinimum: 0, description: 'Default 1000' },
615
+ around: { type: 'array', items: { type: 'string' }, minItems: 1, description: 'Element ids to wrap; width and height are then taken from them' },
616
+ padding: { type: 'number', minimum: 0, description: 'Space between the elements and the frame edge when using around (default 40)' }
617
+ },
618
+ required: ['name']
619
+ }
620
+ },
621
+ {
622
+ name: 'reorder_frame',
623
+ description: 'Change a frame\'s tab order only (position 1 = first tab). No frame or shape moves.',
624
+ inputSchema: {
625
+ type: 'object',
626
+ properties: {
627
+ frame: { type: 'string', description: 'Frame name or id' },
628
+ position: { type: 'integer', minimum: 1, description: 'New 1-based tab position' }
629
+ },
630
+ required: ['frame', 'position']
631
+ }
632
+ },
633
+ {
634
+ name: 'list_comments',
635
+ description: 'List the comments the user left on the canvas, each with its thread and the element it is on. Use status "open" to find what still needs doing.',
636
+ inputSchema: {
637
+ type: 'object',
638
+ properties: {
639
+ status: { type: 'string', enum: ['open', 'resolved'], description: 'Default: all' },
640
+ frame: { type: 'string', description: 'Only comments inside this frame (name or id)' }
641
+ }
642
+ }
643
+ },
644
+ {
645
+ name: 'add_comment',
646
+ description: 'Leave a comment, for example to ask the user a question. Anchor it to an element, or to a canvas point.',
647
+ inputSchema: {
648
+ type: 'object',
649
+ properties: {
650
+ text: { type: 'string' },
651
+ elementId: { type: 'string', description: 'Element the comment sits on' },
652
+ x: { type: 'number', description: 'Canvas x, with y, when there is no element' },
653
+ y: { type: 'number' }
654
+ },
655
+ required: ['text']
656
+ }
657
+ },
658
+ {
659
+ name: 'reply_to_comment',
660
+ description: 'Add a reply to a comment thread.',
661
+ inputSchema: {
662
+ type: 'object',
663
+ properties: { id: { type: 'string' }, text: { type: 'string' } },
664
+ required: ['id', 'text']
665
+ }
666
+ },
667
+ {
668
+ name: 'resolve_comments',
669
+ description: 'Mark comments resolved after acting on them; one call can resolve several. The note says what changed.',
670
+ inputSchema: {
671
+ type: 'object',
672
+ properties: {
673
+ ids: { type: 'array', items: { type: 'string' }, minItems: 1 },
674
+ note: { type: 'string', description: 'What changed' }
675
+ },
676
+ required: ['ids']
677
+ }
678
+ },
679
+ {
680
+ name: 'reopen_comment',
681
+ description: 'Reopen a resolved comment.',
682
+ inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }
683
+ },
684
+ {
685
+ name: 'set_viewport',
686
+ description: 'Control the canvas viewport (camera). Auto-fit all elements, zoom-to-fit a subset of elements, center on a specific element, or set zoom/scroll directly. Requires the canvas frontend open in a browser.',
687
+ inputSchema: {
688
+ type: 'object',
689
+ properties: {
690
+ scrollToContent: {
691
+ type: 'boolean',
692
+ description: 'Auto-fit all elements in view (zoom-to-fit)'
693
+ },
694
+ scrollToElementIds: {
695
+ type: 'array',
696
+ items: { type: 'string' },
697
+ minItems: 1,
698
+ description: 'Zoom-to-fit the bounding box of one or more elements by ID; every ID must exist'
699
+ },
700
+ viewportZoomFactor: {
701
+ type: 'number',
702
+ exclusiveMinimum: 0,
703
+ maximum: 1,
704
+ description: 'Optional fit-to-viewport zoom factor in the range (0, 1] for scrollToContent or scrollToElementIds; lower values leave more padding'
705
+ },
706
+ scrollToElementId: {
707
+ type: 'string',
708
+ description: 'Center the view on a specific element by ID'
709
+ },
710
+ zoom: {
711
+ type: 'number',
712
+ description: 'Zoom level (0.1–10, where 1 = 100%)'
713
+ },
714
+ offsetX: {
715
+ type: 'number',
716
+ description: 'Horizontal scroll offset'
717
+ },
718
+ offsetY: {
719
+ type: 'number',
720
+ description: 'Vertical scroll offset'
721
+ }
722
+ }
723
+ }
724
+ }
725
+ ];