@superdoc-dev/sdk 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (52) hide show
  1. package/dist/generated/client.d.ts +1790 -0
  2. package/dist/generated/client.d.ts.map +1 -0
  3. package/dist/generated/client.js +66 -0
  4. package/dist/generated/contract.d.ts +13676 -0
  5. package/dist/generated/contract.d.ts.map +1 -0
  6. package/dist/generated/contract.js +17809 -0
  7. package/dist/index.d.ts +23 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +29 -0
  10. package/dist/runtime/embedded-cli.d.ts +5 -0
  11. package/dist/runtime/embedded-cli.d.ts.map +1 -0
  12. package/dist/runtime/embedded-cli.js +94 -0
  13. package/dist/runtime/errors.d.ts +17 -0
  14. package/dist/runtime/errors.d.ts.map +1 -0
  15. package/dist/runtime/errors.js +18 -0
  16. package/dist/runtime/host.d.ts +36 -0
  17. package/dist/runtime/host.d.ts.map +1 -0
  18. package/dist/runtime/host.js +345 -0
  19. package/dist/runtime/process.d.ts +16 -0
  20. package/dist/runtime/process.d.ts.map +1 -0
  21. package/dist/runtime/process.js +27 -0
  22. package/dist/runtime/transport-common.d.ts +44 -0
  23. package/dist/runtime/transport-common.d.ts.map +1 -0
  24. package/dist/runtime/transport-common.js +65 -0
  25. package/dist/skills.d.ts +25 -0
  26. package/dist/skills.d.ts.map +1 -0
  27. package/dist/skills.js +140 -0
  28. package/dist/tools.d.ts +113 -0
  29. package/dist/tools.d.ts.map +1 -0
  30. package/dist/tools.js +360 -0
  31. package/package.json +20 -10
  32. package/tools/catalog.json +17128 -0
  33. package/tools/tool-name-map.json +96 -0
  34. package/tools/tools-policy.json +100 -0
  35. package/tools/tools.anthropic.json +3275 -0
  36. package/tools/tools.generic.json +16573 -0
  37. package/tools/tools.openai.json +3557 -0
  38. package/tools/tools.vercel.json +3557 -0
  39. package/skills/.gitkeep +0 -0
  40. package/skills/editing-docx.md +0 -153
  41. package/src/__tests__/skills.test.ts +0 -93
  42. package/src/generated/DO_NOT_EDIT +0 -2
  43. package/src/generated/client.ts +0 -3151
  44. package/src/generated/contract.ts +0 -13396
  45. package/src/index.ts +0 -72
  46. package/src/runtime/__tests__/transport-common.test.ts +0 -151
  47. package/src/runtime/embedded-cli.ts +0 -109
  48. package/src/runtime/errors.ts +0 -30
  49. package/src/runtime/host.ts +0 -465
  50. package/src/runtime/process.ts +0 -45
  51. package/src/runtime/transport-common.ts +0 -159
  52. package/src/skills.ts +0 -91
@@ -0,0 +1,3557 @@
1
+ {
2
+ "contractVersion": "0.1.0",
3
+ "profiles": {
4
+ "intent": [
5
+ {
6
+ "type": "function",
7
+ "function": {
8
+ "name": "find_content",
9
+ "description": "Search the document for nodes matching type, text, or attribute criteria.",
10
+ "parameters": {
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "includeNodes": {
14
+ "type": "boolean"
15
+ },
16
+ "includeUnknown": {
17
+ "type": "boolean"
18
+ },
19
+ "limit": {
20
+ "type": "integer"
21
+ },
22
+ "offset": {
23
+ "type": "integer"
24
+ },
25
+ "select": {
26
+ "anyOf": [
27
+ {
28
+ "additionalProperties": false,
29
+ "properties": {
30
+ "caseSensitive": {
31
+ "type": "boolean"
32
+ },
33
+ "mode": {
34
+ "enum": [
35
+ "contains",
36
+ "regex"
37
+ ]
38
+ },
39
+ "pattern": {
40
+ "type": "string"
41
+ },
42
+ "type": {
43
+ "const": "text"
44
+ }
45
+ },
46
+ "required": [
47
+ "type",
48
+ "pattern"
49
+ ],
50
+ "type": "object"
51
+ },
52
+ {
53
+ "additionalProperties": false,
54
+ "properties": {
55
+ "kind": {
56
+ "enum": [
57
+ "block",
58
+ "inline"
59
+ ]
60
+ },
61
+ "nodeType": {
62
+ "enum": [
63
+ "paragraph",
64
+ "heading",
65
+ "listItem",
66
+ "table",
67
+ "tableRow",
68
+ "tableCell",
69
+ "image",
70
+ "sdt",
71
+ "run",
72
+ "bookmark",
73
+ "comment",
74
+ "hyperlink",
75
+ "footnoteRef",
76
+ "tab",
77
+ "lineBreak"
78
+ ]
79
+ },
80
+ "type": {
81
+ "const": "node"
82
+ }
83
+ },
84
+ "required": [
85
+ "type"
86
+ ],
87
+ "type": "object"
88
+ },
89
+ {
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "nodeType": {
93
+ "enum": [
94
+ "paragraph",
95
+ "heading",
96
+ "listItem",
97
+ "table",
98
+ "tableRow",
99
+ "tableCell",
100
+ "image",
101
+ "sdt",
102
+ "run",
103
+ "bookmark",
104
+ "comment",
105
+ "hyperlink",
106
+ "footnoteRef",
107
+ "tab",
108
+ "lineBreak"
109
+ ]
110
+ }
111
+ },
112
+ "required": [
113
+ "nodeType"
114
+ ],
115
+ "type": "object"
116
+ }
117
+ ]
118
+ },
119
+ "within": {
120
+ "oneOf": [
121
+ {
122
+ "additionalProperties": false,
123
+ "properties": {
124
+ "kind": {
125
+ "const": "block"
126
+ },
127
+ "nodeId": {
128
+ "type": "string"
129
+ },
130
+ "nodeType": {
131
+ "enum": [
132
+ "paragraph",
133
+ "heading",
134
+ "listItem",
135
+ "table",
136
+ "tableRow",
137
+ "tableCell",
138
+ "image",
139
+ "sdt"
140
+ ]
141
+ }
142
+ },
143
+ "required": [
144
+ "kind",
145
+ "nodeType",
146
+ "nodeId"
147
+ ],
148
+ "type": "object"
149
+ },
150
+ {
151
+ "additionalProperties": false,
152
+ "properties": {
153
+ "anchor": {
154
+ "additionalProperties": false,
155
+ "properties": {
156
+ "end": {
157
+ "additionalProperties": false,
158
+ "properties": {
159
+ "blockId": {
160
+ "type": "string"
161
+ },
162
+ "offset": {
163
+ "type": "integer"
164
+ }
165
+ },
166
+ "required": [
167
+ "blockId",
168
+ "offset"
169
+ ],
170
+ "type": "object"
171
+ },
172
+ "start": {
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "blockId": {
176
+ "type": "string"
177
+ },
178
+ "offset": {
179
+ "type": "integer"
180
+ }
181
+ },
182
+ "required": [
183
+ "blockId",
184
+ "offset"
185
+ ],
186
+ "type": "object"
187
+ }
188
+ },
189
+ "required": [
190
+ "start",
191
+ "end"
192
+ ],
193
+ "type": "object"
194
+ },
195
+ "kind": {
196
+ "const": "inline"
197
+ },
198
+ "nodeType": {
199
+ "enum": [
200
+ "run",
201
+ "bookmark",
202
+ "comment",
203
+ "hyperlink",
204
+ "sdt",
205
+ "image",
206
+ "footnoteRef",
207
+ "tab",
208
+ "lineBreak"
209
+ ]
210
+ }
211
+ },
212
+ "required": [
213
+ "kind",
214
+ "nodeType",
215
+ "anchor"
216
+ ],
217
+ "type": "object"
218
+ }
219
+ ]
220
+ }
221
+ },
222
+ "required": [
223
+ "select"
224
+ ],
225
+ "type": "object"
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "type": "function",
231
+ "function": {
232
+ "name": "get_node",
233
+ "description": "Retrieve a single node by target position.",
234
+ "parameters": {
235
+ "oneOf": [
236
+ {
237
+ "additionalProperties": false,
238
+ "properties": {
239
+ "kind": {
240
+ "const": "block"
241
+ },
242
+ "nodeId": {
243
+ "type": "string"
244
+ },
245
+ "nodeType": {
246
+ "enum": [
247
+ "paragraph",
248
+ "heading",
249
+ "listItem",
250
+ "table",
251
+ "tableRow",
252
+ "tableCell",
253
+ "image",
254
+ "sdt"
255
+ ]
256
+ }
257
+ },
258
+ "required": [
259
+ "kind",
260
+ "nodeType",
261
+ "nodeId"
262
+ ],
263
+ "type": "object"
264
+ },
265
+ {
266
+ "additionalProperties": false,
267
+ "properties": {
268
+ "anchor": {
269
+ "additionalProperties": false,
270
+ "properties": {
271
+ "end": {
272
+ "additionalProperties": false,
273
+ "properties": {
274
+ "blockId": {
275
+ "type": "string"
276
+ },
277
+ "offset": {
278
+ "type": "integer"
279
+ }
280
+ },
281
+ "required": [
282
+ "blockId",
283
+ "offset"
284
+ ],
285
+ "type": "object"
286
+ },
287
+ "start": {
288
+ "additionalProperties": false,
289
+ "properties": {
290
+ "blockId": {
291
+ "type": "string"
292
+ },
293
+ "offset": {
294
+ "type": "integer"
295
+ }
296
+ },
297
+ "required": [
298
+ "blockId",
299
+ "offset"
300
+ ],
301
+ "type": "object"
302
+ }
303
+ },
304
+ "required": [
305
+ "start",
306
+ "end"
307
+ ],
308
+ "type": "object"
309
+ },
310
+ "kind": {
311
+ "const": "inline"
312
+ },
313
+ "nodeType": {
314
+ "enum": [
315
+ "run",
316
+ "bookmark",
317
+ "comment",
318
+ "hyperlink",
319
+ "sdt",
320
+ "image",
321
+ "footnoteRef",
322
+ "tab",
323
+ "lineBreak"
324
+ ]
325
+ }
326
+ },
327
+ "required": [
328
+ "kind",
329
+ "nodeType",
330
+ "anchor"
331
+ ],
332
+ "type": "object"
333
+ }
334
+ ]
335
+ }
336
+ }
337
+ },
338
+ {
339
+ "type": "function",
340
+ "function": {
341
+ "name": "get_node_by_id",
342
+ "description": "Retrieve a single node by its unique ID.",
343
+ "parameters": {
344
+ "additionalProperties": false,
345
+ "properties": {
346
+ "nodeId": {
347
+ "type": "string"
348
+ },
349
+ "nodeType": {
350
+ "enum": [
351
+ "paragraph",
352
+ "heading",
353
+ "listItem",
354
+ "table",
355
+ "tableRow",
356
+ "tableCell",
357
+ "image",
358
+ "sdt"
359
+ ]
360
+ }
361
+ },
362
+ "required": [
363
+ "nodeId"
364
+ ],
365
+ "type": "object"
366
+ }
367
+ }
368
+ },
369
+ {
370
+ "type": "function",
371
+ "function": {
372
+ "name": "get_document_info",
373
+ "description": "Return document metadata including revision, node count, and capabilities.",
374
+ "parameters": {
375
+ "additionalProperties": false,
376
+ "properties": {},
377
+ "type": "object"
378
+ }
379
+ }
380
+ },
381
+ {
382
+ "type": "function",
383
+ "function": {
384
+ "name": "insert_content",
385
+ "description": "Insert text or inline content at a target position.",
386
+ "parameters": {
387
+ "additionalProperties": false,
388
+ "properties": {
389
+ "target": {
390
+ "additionalProperties": false,
391
+ "properties": {
392
+ "blockId": {
393
+ "type": "string"
394
+ },
395
+ "kind": {
396
+ "const": "text"
397
+ },
398
+ "range": {
399
+ "additionalProperties": false,
400
+ "properties": {
401
+ "end": {
402
+ "type": "integer"
403
+ },
404
+ "start": {
405
+ "type": "integer"
406
+ }
407
+ },
408
+ "required": [
409
+ "start",
410
+ "end"
411
+ ],
412
+ "type": "object"
413
+ }
414
+ },
415
+ "required": [
416
+ "kind",
417
+ "blockId",
418
+ "range"
419
+ ],
420
+ "type": "object"
421
+ },
422
+ "text": {
423
+ "type": "string"
424
+ }
425
+ },
426
+ "required": [
427
+ "text"
428
+ ],
429
+ "type": "object"
430
+ }
431
+ }
432
+ },
433
+ {
434
+ "type": "function",
435
+ "function": {
436
+ "name": "replace_content",
437
+ "description": "Replace content at a target position with new text or inline content.",
438
+ "parameters": {
439
+ "additionalProperties": false,
440
+ "properties": {
441
+ "target": {
442
+ "additionalProperties": false,
443
+ "properties": {
444
+ "blockId": {
445
+ "type": "string"
446
+ },
447
+ "kind": {
448
+ "const": "text"
449
+ },
450
+ "range": {
451
+ "additionalProperties": false,
452
+ "properties": {
453
+ "end": {
454
+ "type": "integer"
455
+ },
456
+ "start": {
457
+ "type": "integer"
458
+ }
459
+ },
460
+ "required": [
461
+ "start",
462
+ "end"
463
+ ],
464
+ "type": "object"
465
+ }
466
+ },
467
+ "required": [
468
+ "kind",
469
+ "blockId",
470
+ "range"
471
+ ],
472
+ "type": "object"
473
+ },
474
+ "text": {
475
+ "type": "string"
476
+ }
477
+ },
478
+ "required": [
479
+ "target",
480
+ "text"
481
+ ],
482
+ "type": "object"
483
+ }
484
+ }
485
+ },
486
+ {
487
+ "type": "function",
488
+ "function": {
489
+ "name": "delete_content",
490
+ "description": "Delete content at a target position.",
491
+ "parameters": {
492
+ "additionalProperties": false,
493
+ "properties": {
494
+ "target": {
495
+ "additionalProperties": false,
496
+ "properties": {
497
+ "blockId": {
498
+ "type": "string"
499
+ },
500
+ "kind": {
501
+ "const": "text"
502
+ },
503
+ "range": {
504
+ "additionalProperties": false,
505
+ "properties": {
506
+ "end": {
507
+ "type": "integer"
508
+ },
509
+ "start": {
510
+ "type": "integer"
511
+ }
512
+ },
513
+ "required": [
514
+ "start",
515
+ "end"
516
+ ],
517
+ "type": "object"
518
+ }
519
+ },
520
+ "required": [
521
+ "kind",
522
+ "blockId",
523
+ "range"
524
+ ],
525
+ "type": "object"
526
+ }
527
+ },
528
+ "required": [
529
+ "target"
530
+ ],
531
+ "type": "object"
532
+ }
533
+ }
534
+ },
535
+ {
536
+ "type": "function",
537
+ "function": {
538
+ "name": "format_bold",
539
+ "description": "Toggle bold formatting on the target range.",
540
+ "parameters": {
541
+ "additionalProperties": false,
542
+ "properties": {
543
+ "target": {
544
+ "additionalProperties": false,
545
+ "properties": {
546
+ "blockId": {
547
+ "type": "string"
548
+ },
549
+ "kind": {
550
+ "const": "text"
551
+ },
552
+ "range": {
553
+ "additionalProperties": false,
554
+ "properties": {
555
+ "end": {
556
+ "type": "integer"
557
+ },
558
+ "start": {
559
+ "type": "integer"
560
+ }
561
+ },
562
+ "required": [
563
+ "start",
564
+ "end"
565
+ ],
566
+ "type": "object"
567
+ }
568
+ },
569
+ "required": [
570
+ "kind",
571
+ "blockId",
572
+ "range"
573
+ ],
574
+ "type": "object"
575
+ }
576
+ },
577
+ "required": [
578
+ "target"
579
+ ],
580
+ "type": "object"
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "type": "function",
586
+ "function": {
587
+ "name": "format_italic",
588
+ "description": "Toggle italic formatting on the target range.",
589
+ "parameters": {
590
+ "additionalProperties": false,
591
+ "properties": {
592
+ "target": {
593
+ "additionalProperties": false,
594
+ "properties": {
595
+ "blockId": {
596
+ "type": "string"
597
+ },
598
+ "kind": {
599
+ "const": "text"
600
+ },
601
+ "range": {
602
+ "additionalProperties": false,
603
+ "properties": {
604
+ "end": {
605
+ "type": "integer"
606
+ },
607
+ "start": {
608
+ "type": "integer"
609
+ }
610
+ },
611
+ "required": [
612
+ "start",
613
+ "end"
614
+ ],
615
+ "type": "object"
616
+ }
617
+ },
618
+ "required": [
619
+ "kind",
620
+ "blockId",
621
+ "range"
622
+ ],
623
+ "type": "object"
624
+ }
625
+ },
626
+ "required": [
627
+ "target"
628
+ ],
629
+ "type": "object"
630
+ }
631
+ }
632
+ },
633
+ {
634
+ "type": "function",
635
+ "function": {
636
+ "name": "format_underline",
637
+ "description": "Toggle underline formatting on the target range.",
638
+ "parameters": {
639
+ "additionalProperties": false,
640
+ "properties": {
641
+ "target": {
642
+ "additionalProperties": false,
643
+ "properties": {
644
+ "blockId": {
645
+ "type": "string"
646
+ },
647
+ "kind": {
648
+ "const": "text"
649
+ },
650
+ "range": {
651
+ "additionalProperties": false,
652
+ "properties": {
653
+ "end": {
654
+ "type": "integer"
655
+ },
656
+ "start": {
657
+ "type": "integer"
658
+ }
659
+ },
660
+ "required": [
661
+ "start",
662
+ "end"
663
+ ],
664
+ "type": "object"
665
+ }
666
+ },
667
+ "required": [
668
+ "kind",
669
+ "blockId",
670
+ "range"
671
+ ],
672
+ "type": "object"
673
+ }
674
+ },
675
+ "required": [
676
+ "target"
677
+ ],
678
+ "type": "object"
679
+ }
680
+ }
681
+ },
682
+ {
683
+ "type": "function",
684
+ "function": {
685
+ "name": "format_strikethrough",
686
+ "description": "Toggle strikethrough formatting on the target range.",
687
+ "parameters": {
688
+ "additionalProperties": false,
689
+ "properties": {
690
+ "target": {
691
+ "additionalProperties": false,
692
+ "properties": {
693
+ "blockId": {
694
+ "type": "string"
695
+ },
696
+ "kind": {
697
+ "const": "text"
698
+ },
699
+ "range": {
700
+ "additionalProperties": false,
701
+ "properties": {
702
+ "end": {
703
+ "type": "integer"
704
+ },
705
+ "start": {
706
+ "type": "integer"
707
+ }
708
+ },
709
+ "required": [
710
+ "start",
711
+ "end"
712
+ ],
713
+ "type": "object"
714
+ }
715
+ },
716
+ "required": [
717
+ "kind",
718
+ "blockId",
719
+ "range"
720
+ ],
721
+ "type": "object"
722
+ }
723
+ },
724
+ "required": [
725
+ "target"
726
+ ],
727
+ "type": "object"
728
+ }
729
+ }
730
+ },
731
+ {
732
+ "type": "function",
733
+ "function": {
734
+ "name": "create_paragraph",
735
+ "description": "Create a new paragraph at the target position.",
736
+ "parameters": {
737
+ "additionalProperties": false,
738
+ "properties": {
739
+ "at": {
740
+ "oneOf": [
741
+ {
742
+ "additionalProperties": false,
743
+ "properties": {
744
+ "kind": {
745
+ "const": "documentStart"
746
+ }
747
+ },
748
+ "required": [
749
+ "kind"
750
+ ],
751
+ "type": "object"
752
+ },
753
+ {
754
+ "additionalProperties": false,
755
+ "properties": {
756
+ "kind": {
757
+ "const": "documentEnd"
758
+ }
759
+ },
760
+ "required": [
761
+ "kind"
762
+ ],
763
+ "type": "object"
764
+ },
765
+ {
766
+ "additionalProperties": false,
767
+ "properties": {
768
+ "kind": {
769
+ "const": "before"
770
+ },
771
+ "target": {
772
+ "additionalProperties": false,
773
+ "properties": {
774
+ "kind": {
775
+ "const": "block"
776
+ },
777
+ "nodeId": {
778
+ "type": "string"
779
+ },
780
+ "nodeType": {
781
+ "enum": [
782
+ "paragraph",
783
+ "heading",
784
+ "listItem",
785
+ "table",
786
+ "tableRow",
787
+ "tableCell",
788
+ "image",
789
+ "sdt"
790
+ ]
791
+ }
792
+ },
793
+ "required": [
794
+ "kind",
795
+ "nodeType",
796
+ "nodeId"
797
+ ],
798
+ "type": "object"
799
+ }
800
+ },
801
+ "required": [
802
+ "kind",
803
+ "target"
804
+ ],
805
+ "type": "object"
806
+ },
807
+ {
808
+ "additionalProperties": false,
809
+ "properties": {
810
+ "kind": {
811
+ "const": "after"
812
+ },
813
+ "target": {
814
+ "additionalProperties": false,
815
+ "properties": {
816
+ "kind": {
817
+ "const": "block"
818
+ },
819
+ "nodeId": {
820
+ "type": "string"
821
+ },
822
+ "nodeType": {
823
+ "enum": [
824
+ "paragraph",
825
+ "heading",
826
+ "listItem",
827
+ "table",
828
+ "tableRow",
829
+ "tableCell",
830
+ "image",
831
+ "sdt"
832
+ ]
833
+ }
834
+ },
835
+ "required": [
836
+ "kind",
837
+ "nodeType",
838
+ "nodeId"
839
+ ],
840
+ "type": "object"
841
+ }
842
+ },
843
+ "required": [
844
+ "kind",
845
+ "target"
846
+ ],
847
+ "type": "object"
848
+ }
849
+ ]
850
+ },
851
+ "text": {
852
+ "type": "string"
853
+ }
854
+ },
855
+ "type": "object"
856
+ }
857
+ }
858
+ },
859
+ {
860
+ "type": "function",
861
+ "function": {
862
+ "name": "list_lists",
863
+ "description": "List all list nodes in the document, optionally filtered by scope.",
864
+ "parameters": {
865
+ "additionalProperties": false,
866
+ "properties": {
867
+ "kind": {
868
+ "enum": [
869
+ "ordered",
870
+ "bullet"
871
+ ]
872
+ },
873
+ "level": {
874
+ "type": "integer"
875
+ },
876
+ "limit": {
877
+ "type": "integer"
878
+ },
879
+ "offset": {
880
+ "type": "integer"
881
+ },
882
+ "ordinal": {
883
+ "type": "integer"
884
+ },
885
+ "within": {
886
+ "additionalProperties": false,
887
+ "properties": {
888
+ "kind": {
889
+ "const": "block"
890
+ },
891
+ "nodeId": {
892
+ "type": "string"
893
+ },
894
+ "nodeType": {
895
+ "enum": [
896
+ "paragraph",
897
+ "heading",
898
+ "listItem",
899
+ "table",
900
+ "tableRow",
901
+ "tableCell",
902
+ "image",
903
+ "sdt"
904
+ ]
905
+ }
906
+ },
907
+ "required": [
908
+ "kind",
909
+ "nodeType",
910
+ "nodeId"
911
+ ],
912
+ "type": "object"
913
+ }
914
+ },
915
+ "type": "object"
916
+ }
917
+ }
918
+ },
919
+ {
920
+ "type": "function",
921
+ "function": {
922
+ "name": "get_list",
923
+ "description": "Retrieve a specific list node by target.",
924
+ "parameters": {
925
+ "additionalProperties": false,
926
+ "properties": {
927
+ "address": {
928
+ "additionalProperties": false,
929
+ "properties": {
930
+ "kind": {
931
+ "const": "block"
932
+ },
933
+ "nodeId": {
934
+ "type": "string"
935
+ },
936
+ "nodeType": {
937
+ "const": "listItem"
938
+ }
939
+ },
940
+ "required": [
941
+ "kind",
942
+ "nodeType",
943
+ "nodeId"
944
+ ],
945
+ "type": "object"
946
+ }
947
+ },
948
+ "required": [
949
+ "address"
950
+ ],
951
+ "type": "object"
952
+ }
953
+ }
954
+ },
955
+ {
956
+ "type": "function",
957
+ "function": {
958
+ "name": "insert_list",
959
+ "description": "Insert a new list at the target position.",
960
+ "parameters": {
961
+ "additionalProperties": false,
962
+ "properties": {
963
+ "position": {
964
+ "enum": [
965
+ "before",
966
+ "after"
967
+ ]
968
+ },
969
+ "target": {
970
+ "additionalProperties": false,
971
+ "properties": {
972
+ "kind": {
973
+ "const": "block"
974
+ },
975
+ "nodeId": {
976
+ "type": "string"
977
+ },
978
+ "nodeType": {
979
+ "const": "listItem"
980
+ }
981
+ },
982
+ "required": [
983
+ "kind",
984
+ "nodeType",
985
+ "nodeId"
986
+ ],
987
+ "type": "object"
988
+ },
989
+ "text": {
990
+ "type": "string"
991
+ }
992
+ },
993
+ "required": [
994
+ "target",
995
+ "position"
996
+ ],
997
+ "type": "object"
998
+ }
999
+ }
1000
+ },
1001
+ {
1002
+ "type": "function",
1003
+ "function": {
1004
+ "name": "set_list_type",
1005
+ "description": "Change the list type (ordered, unordered) of a target list.",
1006
+ "parameters": {
1007
+ "additionalProperties": false,
1008
+ "properties": {
1009
+ "kind": {
1010
+ "enum": [
1011
+ "ordered",
1012
+ "bullet"
1013
+ ]
1014
+ },
1015
+ "target": {
1016
+ "additionalProperties": false,
1017
+ "properties": {
1018
+ "kind": {
1019
+ "const": "block"
1020
+ },
1021
+ "nodeId": {
1022
+ "type": "string"
1023
+ },
1024
+ "nodeType": {
1025
+ "const": "listItem"
1026
+ }
1027
+ },
1028
+ "required": [
1029
+ "kind",
1030
+ "nodeType",
1031
+ "nodeId"
1032
+ ],
1033
+ "type": "object"
1034
+ }
1035
+ },
1036
+ "required": [
1037
+ "target",
1038
+ "kind"
1039
+ ],
1040
+ "type": "object"
1041
+ }
1042
+ }
1043
+ },
1044
+ {
1045
+ "type": "function",
1046
+ "function": {
1047
+ "name": "indent_list",
1048
+ "description": "Increase the indentation level of a list item.",
1049
+ "parameters": {
1050
+ "additionalProperties": false,
1051
+ "properties": {
1052
+ "target": {
1053
+ "additionalProperties": false,
1054
+ "properties": {
1055
+ "kind": {
1056
+ "const": "block"
1057
+ },
1058
+ "nodeId": {
1059
+ "type": "string"
1060
+ },
1061
+ "nodeType": {
1062
+ "const": "listItem"
1063
+ }
1064
+ },
1065
+ "required": [
1066
+ "kind",
1067
+ "nodeType",
1068
+ "nodeId"
1069
+ ],
1070
+ "type": "object"
1071
+ }
1072
+ },
1073
+ "required": [
1074
+ "target"
1075
+ ],
1076
+ "type": "object"
1077
+ }
1078
+ }
1079
+ },
1080
+ {
1081
+ "type": "function",
1082
+ "function": {
1083
+ "name": "outdent_list",
1084
+ "description": "Decrease the indentation level of a list item.",
1085
+ "parameters": {
1086
+ "additionalProperties": false,
1087
+ "properties": {
1088
+ "target": {
1089
+ "additionalProperties": false,
1090
+ "properties": {
1091
+ "kind": {
1092
+ "const": "block"
1093
+ },
1094
+ "nodeId": {
1095
+ "type": "string"
1096
+ },
1097
+ "nodeType": {
1098
+ "const": "listItem"
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "kind",
1103
+ "nodeType",
1104
+ "nodeId"
1105
+ ],
1106
+ "type": "object"
1107
+ }
1108
+ },
1109
+ "required": [
1110
+ "target"
1111
+ ],
1112
+ "type": "object"
1113
+ }
1114
+ }
1115
+ },
1116
+ {
1117
+ "type": "function",
1118
+ "function": {
1119
+ "name": "restart_list_numbering",
1120
+ "description": "Restart numbering of an ordered list at the target item.",
1121
+ "parameters": {
1122
+ "additionalProperties": false,
1123
+ "properties": {
1124
+ "target": {
1125
+ "additionalProperties": false,
1126
+ "properties": {
1127
+ "kind": {
1128
+ "const": "block"
1129
+ },
1130
+ "nodeId": {
1131
+ "type": "string"
1132
+ },
1133
+ "nodeType": {
1134
+ "const": "listItem"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "kind",
1139
+ "nodeType",
1140
+ "nodeId"
1141
+ ],
1142
+ "type": "object"
1143
+ }
1144
+ },
1145
+ "required": [
1146
+ "target"
1147
+ ],
1148
+ "type": "object"
1149
+ }
1150
+ }
1151
+ },
1152
+ {
1153
+ "type": "function",
1154
+ "function": {
1155
+ "name": "exit_list",
1156
+ "description": "Exit a list context, converting the target item to a paragraph.",
1157
+ "parameters": {
1158
+ "additionalProperties": false,
1159
+ "properties": {
1160
+ "target": {
1161
+ "additionalProperties": false,
1162
+ "properties": {
1163
+ "kind": {
1164
+ "const": "block"
1165
+ },
1166
+ "nodeId": {
1167
+ "type": "string"
1168
+ },
1169
+ "nodeType": {
1170
+ "const": "listItem"
1171
+ }
1172
+ },
1173
+ "required": [
1174
+ "kind",
1175
+ "nodeType",
1176
+ "nodeId"
1177
+ ],
1178
+ "type": "object"
1179
+ }
1180
+ },
1181
+ "required": [
1182
+ "target"
1183
+ ],
1184
+ "type": "object"
1185
+ }
1186
+ }
1187
+ },
1188
+ {
1189
+ "type": "function",
1190
+ "function": {
1191
+ "name": "add_comment",
1192
+ "description": "Add a new comment thread anchored to a target range.",
1193
+ "parameters": {
1194
+ "additionalProperties": false,
1195
+ "properties": {
1196
+ "target": {
1197
+ "additionalProperties": false,
1198
+ "properties": {
1199
+ "blockId": {
1200
+ "type": "string"
1201
+ },
1202
+ "kind": {
1203
+ "const": "text"
1204
+ },
1205
+ "range": {
1206
+ "additionalProperties": false,
1207
+ "properties": {
1208
+ "end": {
1209
+ "type": "integer"
1210
+ },
1211
+ "start": {
1212
+ "type": "integer"
1213
+ }
1214
+ },
1215
+ "required": [
1216
+ "start",
1217
+ "end"
1218
+ ],
1219
+ "type": "object"
1220
+ }
1221
+ },
1222
+ "required": [
1223
+ "kind",
1224
+ "blockId",
1225
+ "range"
1226
+ ],
1227
+ "type": "object"
1228
+ },
1229
+ "text": {
1230
+ "type": "string"
1231
+ }
1232
+ },
1233
+ "required": [
1234
+ "target",
1235
+ "text"
1236
+ ],
1237
+ "type": "object"
1238
+ }
1239
+ }
1240
+ },
1241
+ {
1242
+ "type": "function",
1243
+ "function": {
1244
+ "name": "edit_comment",
1245
+ "description": "Edit the content of an existing comment.",
1246
+ "parameters": {
1247
+ "additionalProperties": false,
1248
+ "properties": {
1249
+ "commentId": {
1250
+ "type": "string"
1251
+ },
1252
+ "text": {
1253
+ "type": "string"
1254
+ }
1255
+ },
1256
+ "required": [
1257
+ "commentId",
1258
+ "text"
1259
+ ],
1260
+ "type": "object"
1261
+ }
1262
+ }
1263
+ },
1264
+ {
1265
+ "type": "function",
1266
+ "function": {
1267
+ "name": "reply_to_comment",
1268
+ "description": "Add a reply to an existing comment thread.",
1269
+ "parameters": {
1270
+ "additionalProperties": false,
1271
+ "properties": {
1272
+ "parentCommentId": {
1273
+ "type": "string"
1274
+ },
1275
+ "text": {
1276
+ "type": "string"
1277
+ }
1278
+ },
1279
+ "required": [
1280
+ "parentCommentId",
1281
+ "text"
1282
+ ],
1283
+ "type": "object"
1284
+ }
1285
+ }
1286
+ },
1287
+ {
1288
+ "type": "function",
1289
+ "function": {
1290
+ "name": "move_comment",
1291
+ "description": "Move a comment thread to a new anchor range.",
1292
+ "parameters": {
1293
+ "additionalProperties": false,
1294
+ "properties": {
1295
+ "commentId": {
1296
+ "type": "string"
1297
+ },
1298
+ "target": {
1299
+ "additionalProperties": false,
1300
+ "properties": {
1301
+ "blockId": {
1302
+ "type": "string"
1303
+ },
1304
+ "kind": {
1305
+ "const": "text"
1306
+ },
1307
+ "range": {
1308
+ "additionalProperties": false,
1309
+ "properties": {
1310
+ "end": {
1311
+ "type": "integer"
1312
+ },
1313
+ "start": {
1314
+ "type": "integer"
1315
+ }
1316
+ },
1317
+ "required": [
1318
+ "start",
1319
+ "end"
1320
+ ],
1321
+ "type": "object"
1322
+ }
1323
+ },
1324
+ "required": [
1325
+ "kind",
1326
+ "blockId",
1327
+ "range"
1328
+ ],
1329
+ "type": "object"
1330
+ }
1331
+ },
1332
+ "required": [
1333
+ "commentId",
1334
+ "target"
1335
+ ],
1336
+ "type": "object"
1337
+ }
1338
+ }
1339
+ },
1340
+ {
1341
+ "type": "function",
1342
+ "function": {
1343
+ "name": "resolve_comment",
1344
+ "description": "Resolve or unresolve a comment thread.",
1345
+ "parameters": {
1346
+ "additionalProperties": false,
1347
+ "properties": {
1348
+ "commentId": {
1349
+ "type": "string"
1350
+ }
1351
+ },
1352
+ "required": [
1353
+ "commentId"
1354
+ ],
1355
+ "type": "object"
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "type": "function",
1361
+ "function": {
1362
+ "name": "remove_comment",
1363
+ "description": "Remove a comment or reply by ID.",
1364
+ "parameters": {
1365
+ "additionalProperties": false,
1366
+ "properties": {
1367
+ "commentId": {
1368
+ "type": "string"
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "commentId"
1373
+ ],
1374
+ "type": "object"
1375
+ }
1376
+ }
1377
+ },
1378
+ {
1379
+ "type": "function",
1380
+ "function": {
1381
+ "name": "set_comment_internal",
1382
+ "description": "Toggle the internal (private) flag on a comment thread.",
1383
+ "parameters": {
1384
+ "additionalProperties": false,
1385
+ "properties": {
1386
+ "commentId": {
1387
+ "type": "string"
1388
+ },
1389
+ "isInternal": {
1390
+ "type": "boolean"
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "commentId",
1395
+ "isInternal"
1396
+ ],
1397
+ "type": "object"
1398
+ }
1399
+ }
1400
+ },
1401
+ {
1402
+ "type": "function",
1403
+ "function": {
1404
+ "name": "set_comment_active",
1405
+ "description": "Set the active (focused) comment thread for UI highlighting.",
1406
+ "parameters": {
1407
+ "additionalProperties": false,
1408
+ "properties": {
1409
+ "commentId": {
1410
+ "type": [
1411
+ "string",
1412
+ "null"
1413
+ ]
1414
+ }
1415
+ },
1416
+ "required": [
1417
+ "commentId"
1418
+ ],
1419
+ "type": "object"
1420
+ }
1421
+ }
1422
+ },
1423
+ {
1424
+ "type": "function",
1425
+ "function": {
1426
+ "name": "go_to_comment",
1427
+ "description": "Scroll the viewport to a comment thread by ID.",
1428
+ "parameters": {
1429
+ "additionalProperties": false,
1430
+ "properties": {
1431
+ "commentId": {
1432
+ "type": "string"
1433
+ }
1434
+ },
1435
+ "required": [
1436
+ "commentId"
1437
+ ],
1438
+ "type": "object"
1439
+ }
1440
+ }
1441
+ },
1442
+ {
1443
+ "type": "function",
1444
+ "function": {
1445
+ "name": "get_comment",
1446
+ "description": "Retrieve a single comment thread by ID.",
1447
+ "parameters": {
1448
+ "additionalProperties": false,
1449
+ "properties": {
1450
+ "commentId": {
1451
+ "type": "string"
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "commentId"
1456
+ ],
1457
+ "type": "object"
1458
+ }
1459
+ }
1460
+ },
1461
+ {
1462
+ "type": "function",
1463
+ "function": {
1464
+ "name": "list_comments",
1465
+ "description": "List all comment threads in the document.",
1466
+ "parameters": {
1467
+ "additionalProperties": false,
1468
+ "properties": {
1469
+ "includeResolved": {
1470
+ "type": "boolean"
1471
+ }
1472
+ },
1473
+ "type": "object"
1474
+ }
1475
+ }
1476
+ },
1477
+ {
1478
+ "type": "function",
1479
+ "function": {
1480
+ "name": "list_tracked_changes",
1481
+ "description": "List all tracked changes in the document.",
1482
+ "parameters": {
1483
+ "additionalProperties": false,
1484
+ "properties": {
1485
+ "limit": {
1486
+ "type": "integer"
1487
+ },
1488
+ "offset": {
1489
+ "type": "integer"
1490
+ },
1491
+ "type": {
1492
+ "enum": [
1493
+ "insert",
1494
+ "delete",
1495
+ "format"
1496
+ ]
1497
+ }
1498
+ },
1499
+ "type": "object"
1500
+ }
1501
+ }
1502
+ },
1503
+ {
1504
+ "type": "function",
1505
+ "function": {
1506
+ "name": "get_tracked_change",
1507
+ "description": "Retrieve a single tracked change by ID.",
1508
+ "parameters": {
1509
+ "additionalProperties": false,
1510
+ "properties": {
1511
+ "id": {
1512
+ "type": "string"
1513
+ }
1514
+ },
1515
+ "required": [
1516
+ "id"
1517
+ ],
1518
+ "type": "object"
1519
+ }
1520
+ }
1521
+ },
1522
+ {
1523
+ "type": "function",
1524
+ "function": {
1525
+ "name": "accept_tracked_change",
1526
+ "description": "Accept a tracked change, applying it permanently.",
1527
+ "parameters": {
1528
+ "additionalProperties": false,
1529
+ "properties": {
1530
+ "id": {
1531
+ "type": "string"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "id"
1536
+ ],
1537
+ "type": "object"
1538
+ }
1539
+ }
1540
+ },
1541
+ {
1542
+ "type": "function",
1543
+ "function": {
1544
+ "name": "reject_tracked_change",
1545
+ "description": "Reject a tracked change, reverting it.",
1546
+ "parameters": {
1547
+ "additionalProperties": false,
1548
+ "properties": {
1549
+ "id": {
1550
+ "type": "string"
1551
+ }
1552
+ },
1553
+ "required": [
1554
+ "id"
1555
+ ],
1556
+ "type": "object"
1557
+ }
1558
+ }
1559
+ },
1560
+ {
1561
+ "type": "function",
1562
+ "function": {
1563
+ "name": "accept_all_tracked_changes",
1564
+ "description": "Accept all tracked changes in the document.",
1565
+ "parameters": {
1566
+ "additionalProperties": false,
1567
+ "properties": {},
1568
+ "type": "object"
1569
+ }
1570
+ }
1571
+ },
1572
+ {
1573
+ "type": "function",
1574
+ "function": {
1575
+ "name": "reject_all_tracked_changes",
1576
+ "description": "Reject all tracked changes in the document.",
1577
+ "parameters": {
1578
+ "additionalProperties": false,
1579
+ "properties": {},
1580
+ "type": "object"
1581
+ }
1582
+ }
1583
+ },
1584
+ {
1585
+ "type": "function",
1586
+ "function": {
1587
+ "name": "open_document",
1588
+ "description": "Open a document and create a persistent editing session.",
1589
+ "parameters": {
1590
+ "type": "object",
1591
+ "properties": {
1592
+ "doc": {
1593
+ "type": "string"
1594
+ },
1595
+ "sessionId": {
1596
+ "type": "string"
1597
+ },
1598
+ "collaboration": {},
1599
+ "collabDocumentId": {
1600
+ "type": "string"
1601
+ },
1602
+ "collabUrl": {
1603
+ "type": "string"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "doc"
1608
+ ],
1609
+ "additionalProperties": false
1610
+ }
1611
+ }
1612
+ },
1613
+ {
1614
+ "type": "function",
1615
+ "function": {
1616
+ "name": "save_document",
1617
+ "description": "Save the current session to the original file or a new path.",
1618
+ "parameters": {
1619
+ "type": "object",
1620
+ "properties": {
1621
+ "sessionId": {
1622
+ "type": "string"
1623
+ },
1624
+ "force": {
1625
+ "type": "boolean"
1626
+ },
1627
+ "inPlace": {
1628
+ "type": "boolean"
1629
+ }
1630
+ },
1631
+ "additionalProperties": false
1632
+ }
1633
+ }
1634
+ },
1635
+ {
1636
+ "type": "function",
1637
+ "function": {
1638
+ "name": "close_document",
1639
+ "description": "Close the active editing session and clean up resources.",
1640
+ "parameters": {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "sessionId": {
1644
+ "type": "string"
1645
+ },
1646
+ "discard": {
1647
+ "type": "boolean"
1648
+ }
1649
+ },
1650
+ "additionalProperties": false
1651
+ }
1652
+ }
1653
+ },
1654
+ {
1655
+ "type": "function",
1656
+ "function": {
1657
+ "name": "get_status",
1658
+ "description": "Show the current session status and document metadata.",
1659
+ "parameters": {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "sessionId": {
1663
+ "type": "string"
1664
+ }
1665
+ },
1666
+ "additionalProperties": false
1667
+ }
1668
+ }
1669
+ },
1670
+ {
1671
+ "type": "function",
1672
+ "function": {
1673
+ "name": "describe_commands",
1674
+ "description": "List all available CLI operations and contract metadata.",
1675
+ "parameters": {
1676
+ "type": "object",
1677
+ "properties": {},
1678
+ "additionalProperties": false
1679
+ }
1680
+ }
1681
+ },
1682
+ {
1683
+ "type": "function",
1684
+ "function": {
1685
+ "name": "describe_command",
1686
+ "description": "Show detailed metadata for a single CLI operation.",
1687
+ "parameters": {
1688
+ "type": "object",
1689
+ "properties": {
1690
+ "operationId": {
1691
+ "type": "string"
1692
+ }
1693
+ },
1694
+ "required": [
1695
+ "operationId"
1696
+ ],
1697
+ "additionalProperties": false
1698
+ }
1699
+ }
1700
+ },
1701
+ {
1702
+ "type": "function",
1703
+ "function": {
1704
+ "name": "list_sessions",
1705
+ "description": "List all active editing sessions.",
1706
+ "parameters": {
1707
+ "type": "object",
1708
+ "properties": {},
1709
+ "additionalProperties": false
1710
+ }
1711
+ }
1712
+ },
1713
+ {
1714
+ "type": "function",
1715
+ "function": {
1716
+ "name": "save_session",
1717
+ "description": "Persist the current session state.",
1718
+ "parameters": {
1719
+ "type": "object",
1720
+ "properties": {
1721
+ "sessionId": {
1722
+ "type": "string"
1723
+ },
1724
+ "force": {
1725
+ "type": "boolean"
1726
+ },
1727
+ "inPlace": {
1728
+ "type": "boolean"
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "sessionId"
1733
+ ],
1734
+ "additionalProperties": false
1735
+ }
1736
+ }
1737
+ },
1738
+ {
1739
+ "type": "function",
1740
+ "function": {
1741
+ "name": "close_session",
1742
+ "description": "Close a specific editing session by ID.",
1743
+ "parameters": {
1744
+ "type": "object",
1745
+ "properties": {
1746
+ "sessionId": {
1747
+ "type": "string"
1748
+ },
1749
+ "discard": {
1750
+ "type": "boolean"
1751
+ }
1752
+ },
1753
+ "required": [
1754
+ "sessionId"
1755
+ ],
1756
+ "additionalProperties": false
1757
+ }
1758
+ }
1759
+ },
1760
+ {
1761
+ "type": "function",
1762
+ "function": {
1763
+ "name": "set_default_session",
1764
+ "description": "Set the default session for subsequent commands.",
1765
+ "parameters": {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "sessionId": {
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "required": [
1773
+ "sessionId"
1774
+ ],
1775
+ "additionalProperties": false
1776
+ }
1777
+ }
1778
+ }
1779
+ ],
1780
+ "operation": [
1781
+ {
1782
+ "type": "function",
1783
+ "function": {
1784
+ "name": "doc_find",
1785
+ "description": "Search the document for nodes matching type, text, or attribute criteria.",
1786
+ "parameters": {
1787
+ "additionalProperties": false,
1788
+ "properties": {
1789
+ "includeNodes": {
1790
+ "type": "boolean"
1791
+ },
1792
+ "includeUnknown": {
1793
+ "type": "boolean"
1794
+ },
1795
+ "limit": {
1796
+ "type": "integer"
1797
+ },
1798
+ "offset": {
1799
+ "type": "integer"
1800
+ },
1801
+ "select": {
1802
+ "anyOf": [
1803
+ {
1804
+ "additionalProperties": false,
1805
+ "properties": {
1806
+ "caseSensitive": {
1807
+ "type": "boolean"
1808
+ },
1809
+ "mode": {
1810
+ "enum": [
1811
+ "contains",
1812
+ "regex"
1813
+ ]
1814
+ },
1815
+ "pattern": {
1816
+ "type": "string"
1817
+ },
1818
+ "type": {
1819
+ "const": "text"
1820
+ }
1821
+ },
1822
+ "required": [
1823
+ "type",
1824
+ "pattern"
1825
+ ],
1826
+ "type": "object"
1827
+ },
1828
+ {
1829
+ "additionalProperties": false,
1830
+ "properties": {
1831
+ "kind": {
1832
+ "enum": [
1833
+ "block",
1834
+ "inline"
1835
+ ]
1836
+ },
1837
+ "nodeType": {
1838
+ "enum": [
1839
+ "paragraph",
1840
+ "heading",
1841
+ "listItem",
1842
+ "table",
1843
+ "tableRow",
1844
+ "tableCell",
1845
+ "image",
1846
+ "sdt",
1847
+ "run",
1848
+ "bookmark",
1849
+ "comment",
1850
+ "hyperlink",
1851
+ "footnoteRef",
1852
+ "tab",
1853
+ "lineBreak"
1854
+ ]
1855
+ },
1856
+ "type": {
1857
+ "const": "node"
1858
+ }
1859
+ },
1860
+ "required": [
1861
+ "type"
1862
+ ],
1863
+ "type": "object"
1864
+ },
1865
+ {
1866
+ "additionalProperties": false,
1867
+ "properties": {
1868
+ "nodeType": {
1869
+ "enum": [
1870
+ "paragraph",
1871
+ "heading",
1872
+ "listItem",
1873
+ "table",
1874
+ "tableRow",
1875
+ "tableCell",
1876
+ "image",
1877
+ "sdt",
1878
+ "run",
1879
+ "bookmark",
1880
+ "comment",
1881
+ "hyperlink",
1882
+ "footnoteRef",
1883
+ "tab",
1884
+ "lineBreak"
1885
+ ]
1886
+ }
1887
+ },
1888
+ "required": [
1889
+ "nodeType"
1890
+ ],
1891
+ "type": "object"
1892
+ }
1893
+ ]
1894
+ },
1895
+ "within": {
1896
+ "oneOf": [
1897
+ {
1898
+ "additionalProperties": false,
1899
+ "properties": {
1900
+ "kind": {
1901
+ "const": "block"
1902
+ },
1903
+ "nodeId": {
1904
+ "type": "string"
1905
+ },
1906
+ "nodeType": {
1907
+ "enum": [
1908
+ "paragraph",
1909
+ "heading",
1910
+ "listItem",
1911
+ "table",
1912
+ "tableRow",
1913
+ "tableCell",
1914
+ "image",
1915
+ "sdt"
1916
+ ]
1917
+ }
1918
+ },
1919
+ "required": [
1920
+ "kind",
1921
+ "nodeType",
1922
+ "nodeId"
1923
+ ],
1924
+ "type": "object"
1925
+ },
1926
+ {
1927
+ "additionalProperties": false,
1928
+ "properties": {
1929
+ "anchor": {
1930
+ "additionalProperties": false,
1931
+ "properties": {
1932
+ "end": {
1933
+ "additionalProperties": false,
1934
+ "properties": {
1935
+ "blockId": {
1936
+ "type": "string"
1937
+ },
1938
+ "offset": {
1939
+ "type": "integer"
1940
+ }
1941
+ },
1942
+ "required": [
1943
+ "blockId",
1944
+ "offset"
1945
+ ],
1946
+ "type": "object"
1947
+ },
1948
+ "start": {
1949
+ "additionalProperties": false,
1950
+ "properties": {
1951
+ "blockId": {
1952
+ "type": "string"
1953
+ },
1954
+ "offset": {
1955
+ "type": "integer"
1956
+ }
1957
+ },
1958
+ "required": [
1959
+ "blockId",
1960
+ "offset"
1961
+ ],
1962
+ "type": "object"
1963
+ }
1964
+ },
1965
+ "required": [
1966
+ "start",
1967
+ "end"
1968
+ ],
1969
+ "type": "object"
1970
+ },
1971
+ "kind": {
1972
+ "const": "inline"
1973
+ },
1974
+ "nodeType": {
1975
+ "enum": [
1976
+ "run",
1977
+ "bookmark",
1978
+ "comment",
1979
+ "hyperlink",
1980
+ "sdt",
1981
+ "image",
1982
+ "footnoteRef",
1983
+ "tab",
1984
+ "lineBreak"
1985
+ ]
1986
+ }
1987
+ },
1988
+ "required": [
1989
+ "kind",
1990
+ "nodeType",
1991
+ "anchor"
1992
+ ],
1993
+ "type": "object"
1994
+ }
1995
+ ]
1996
+ }
1997
+ },
1998
+ "required": [
1999
+ "select"
2000
+ ],
2001
+ "type": "object"
2002
+ }
2003
+ }
2004
+ },
2005
+ {
2006
+ "type": "function",
2007
+ "function": {
2008
+ "name": "doc_getNode",
2009
+ "description": "Retrieve a single node by target position.",
2010
+ "parameters": {
2011
+ "oneOf": [
2012
+ {
2013
+ "additionalProperties": false,
2014
+ "properties": {
2015
+ "kind": {
2016
+ "const": "block"
2017
+ },
2018
+ "nodeId": {
2019
+ "type": "string"
2020
+ },
2021
+ "nodeType": {
2022
+ "enum": [
2023
+ "paragraph",
2024
+ "heading",
2025
+ "listItem",
2026
+ "table",
2027
+ "tableRow",
2028
+ "tableCell",
2029
+ "image",
2030
+ "sdt"
2031
+ ]
2032
+ }
2033
+ },
2034
+ "required": [
2035
+ "kind",
2036
+ "nodeType",
2037
+ "nodeId"
2038
+ ],
2039
+ "type": "object"
2040
+ },
2041
+ {
2042
+ "additionalProperties": false,
2043
+ "properties": {
2044
+ "anchor": {
2045
+ "additionalProperties": false,
2046
+ "properties": {
2047
+ "end": {
2048
+ "additionalProperties": false,
2049
+ "properties": {
2050
+ "blockId": {
2051
+ "type": "string"
2052
+ },
2053
+ "offset": {
2054
+ "type": "integer"
2055
+ }
2056
+ },
2057
+ "required": [
2058
+ "blockId",
2059
+ "offset"
2060
+ ],
2061
+ "type": "object"
2062
+ },
2063
+ "start": {
2064
+ "additionalProperties": false,
2065
+ "properties": {
2066
+ "blockId": {
2067
+ "type": "string"
2068
+ },
2069
+ "offset": {
2070
+ "type": "integer"
2071
+ }
2072
+ },
2073
+ "required": [
2074
+ "blockId",
2075
+ "offset"
2076
+ ],
2077
+ "type": "object"
2078
+ }
2079
+ },
2080
+ "required": [
2081
+ "start",
2082
+ "end"
2083
+ ],
2084
+ "type": "object"
2085
+ },
2086
+ "kind": {
2087
+ "const": "inline"
2088
+ },
2089
+ "nodeType": {
2090
+ "enum": [
2091
+ "run",
2092
+ "bookmark",
2093
+ "comment",
2094
+ "hyperlink",
2095
+ "sdt",
2096
+ "image",
2097
+ "footnoteRef",
2098
+ "tab",
2099
+ "lineBreak"
2100
+ ]
2101
+ }
2102
+ },
2103
+ "required": [
2104
+ "kind",
2105
+ "nodeType",
2106
+ "anchor"
2107
+ ],
2108
+ "type": "object"
2109
+ }
2110
+ ]
2111
+ }
2112
+ }
2113
+ },
2114
+ {
2115
+ "type": "function",
2116
+ "function": {
2117
+ "name": "doc_getNodeById",
2118
+ "description": "Retrieve a single node by its unique ID.",
2119
+ "parameters": {
2120
+ "additionalProperties": false,
2121
+ "properties": {
2122
+ "nodeId": {
2123
+ "type": "string"
2124
+ },
2125
+ "nodeType": {
2126
+ "enum": [
2127
+ "paragraph",
2128
+ "heading",
2129
+ "listItem",
2130
+ "table",
2131
+ "tableRow",
2132
+ "tableCell",
2133
+ "image",
2134
+ "sdt"
2135
+ ]
2136
+ }
2137
+ },
2138
+ "required": [
2139
+ "nodeId"
2140
+ ],
2141
+ "type": "object"
2142
+ }
2143
+ }
2144
+ },
2145
+ {
2146
+ "type": "function",
2147
+ "function": {
2148
+ "name": "doc_info",
2149
+ "description": "Return document metadata including revision, node count, and capabilities.",
2150
+ "parameters": {
2151
+ "additionalProperties": false,
2152
+ "properties": {},
2153
+ "type": "object"
2154
+ }
2155
+ }
2156
+ },
2157
+ {
2158
+ "type": "function",
2159
+ "function": {
2160
+ "name": "doc_insert",
2161
+ "description": "Insert text or inline content at a target position.",
2162
+ "parameters": {
2163
+ "additionalProperties": false,
2164
+ "properties": {
2165
+ "target": {
2166
+ "additionalProperties": false,
2167
+ "properties": {
2168
+ "blockId": {
2169
+ "type": "string"
2170
+ },
2171
+ "kind": {
2172
+ "const": "text"
2173
+ },
2174
+ "range": {
2175
+ "additionalProperties": false,
2176
+ "properties": {
2177
+ "end": {
2178
+ "type": "integer"
2179
+ },
2180
+ "start": {
2181
+ "type": "integer"
2182
+ }
2183
+ },
2184
+ "required": [
2185
+ "start",
2186
+ "end"
2187
+ ],
2188
+ "type": "object"
2189
+ }
2190
+ },
2191
+ "required": [
2192
+ "kind",
2193
+ "blockId",
2194
+ "range"
2195
+ ],
2196
+ "type": "object"
2197
+ },
2198
+ "text": {
2199
+ "type": "string"
2200
+ }
2201
+ },
2202
+ "required": [
2203
+ "text"
2204
+ ],
2205
+ "type": "object"
2206
+ }
2207
+ }
2208
+ },
2209
+ {
2210
+ "type": "function",
2211
+ "function": {
2212
+ "name": "doc_replace",
2213
+ "description": "Replace content at a target position with new text or inline content.",
2214
+ "parameters": {
2215
+ "additionalProperties": false,
2216
+ "properties": {
2217
+ "target": {
2218
+ "additionalProperties": false,
2219
+ "properties": {
2220
+ "blockId": {
2221
+ "type": "string"
2222
+ },
2223
+ "kind": {
2224
+ "const": "text"
2225
+ },
2226
+ "range": {
2227
+ "additionalProperties": false,
2228
+ "properties": {
2229
+ "end": {
2230
+ "type": "integer"
2231
+ },
2232
+ "start": {
2233
+ "type": "integer"
2234
+ }
2235
+ },
2236
+ "required": [
2237
+ "start",
2238
+ "end"
2239
+ ],
2240
+ "type": "object"
2241
+ }
2242
+ },
2243
+ "required": [
2244
+ "kind",
2245
+ "blockId",
2246
+ "range"
2247
+ ],
2248
+ "type": "object"
2249
+ },
2250
+ "text": {
2251
+ "type": "string"
2252
+ }
2253
+ },
2254
+ "required": [
2255
+ "target",
2256
+ "text"
2257
+ ],
2258
+ "type": "object"
2259
+ }
2260
+ }
2261
+ },
2262
+ {
2263
+ "type": "function",
2264
+ "function": {
2265
+ "name": "doc_delete",
2266
+ "description": "Delete content at a target position.",
2267
+ "parameters": {
2268
+ "additionalProperties": false,
2269
+ "properties": {
2270
+ "target": {
2271
+ "additionalProperties": false,
2272
+ "properties": {
2273
+ "blockId": {
2274
+ "type": "string"
2275
+ },
2276
+ "kind": {
2277
+ "const": "text"
2278
+ },
2279
+ "range": {
2280
+ "additionalProperties": false,
2281
+ "properties": {
2282
+ "end": {
2283
+ "type": "integer"
2284
+ },
2285
+ "start": {
2286
+ "type": "integer"
2287
+ }
2288
+ },
2289
+ "required": [
2290
+ "start",
2291
+ "end"
2292
+ ],
2293
+ "type": "object"
2294
+ }
2295
+ },
2296
+ "required": [
2297
+ "kind",
2298
+ "blockId",
2299
+ "range"
2300
+ ],
2301
+ "type": "object"
2302
+ }
2303
+ },
2304
+ "required": [
2305
+ "target"
2306
+ ],
2307
+ "type": "object"
2308
+ }
2309
+ }
2310
+ },
2311
+ {
2312
+ "type": "function",
2313
+ "function": {
2314
+ "name": "doc_format_bold",
2315
+ "description": "Toggle bold formatting on the target range.",
2316
+ "parameters": {
2317
+ "additionalProperties": false,
2318
+ "properties": {
2319
+ "target": {
2320
+ "additionalProperties": false,
2321
+ "properties": {
2322
+ "blockId": {
2323
+ "type": "string"
2324
+ },
2325
+ "kind": {
2326
+ "const": "text"
2327
+ },
2328
+ "range": {
2329
+ "additionalProperties": false,
2330
+ "properties": {
2331
+ "end": {
2332
+ "type": "integer"
2333
+ },
2334
+ "start": {
2335
+ "type": "integer"
2336
+ }
2337
+ },
2338
+ "required": [
2339
+ "start",
2340
+ "end"
2341
+ ],
2342
+ "type": "object"
2343
+ }
2344
+ },
2345
+ "required": [
2346
+ "kind",
2347
+ "blockId",
2348
+ "range"
2349
+ ],
2350
+ "type": "object"
2351
+ }
2352
+ },
2353
+ "required": [
2354
+ "target"
2355
+ ],
2356
+ "type": "object"
2357
+ }
2358
+ }
2359
+ },
2360
+ {
2361
+ "type": "function",
2362
+ "function": {
2363
+ "name": "doc_format_italic",
2364
+ "description": "Toggle italic formatting on the target range.",
2365
+ "parameters": {
2366
+ "additionalProperties": false,
2367
+ "properties": {
2368
+ "target": {
2369
+ "additionalProperties": false,
2370
+ "properties": {
2371
+ "blockId": {
2372
+ "type": "string"
2373
+ },
2374
+ "kind": {
2375
+ "const": "text"
2376
+ },
2377
+ "range": {
2378
+ "additionalProperties": false,
2379
+ "properties": {
2380
+ "end": {
2381
+ "type": "integer"
2382
+ },
2383
+ "start": {
2384
+ "type": "integer"
2385
+ }
2386
+ },
2387
+ "required": [
2388
+ "start",
2389
+ "end"
2390
+ ],
2391
+ "type": "object"
2392
+ }
2393
+ },
2394
+ "required": [
2395
+ "kind",
2396
+ "blockId",
2397
+ "range"
2398
+ ],
2399
+ "type": "object"
2400
+ }
2401
+ },
2402
+ "required": [
2403
+ "target"
2404
+ ],
2405
+ "type": "object"
2406
+ }
2407
+ }
2408
+ },
2409
+ {
2410
+ "type": "function",
2411
+ "function": {
2412
+ "name": "doc_format_underline",
2413
+ "description": "Toggle underline formatting on the target range.",
2414
+ "parameters": {
2415
+ "additionalProperties": false,
2416
+ "properties": {
2417
+ "target": {
2418
+ "additionalProperties": false,
2419
+ "properties": {
2420
+ "blockId": {
2421
+ "type": "string"
2422
+ },
2423
+ "kind": {
2424
+ "const": "text"
2425
+ },
2426
+ "range": {
2427
+ "additionalProperties": false,
2428
+ "properties": {
2429
+ "end": {
2430
+ "type": "integer"
2431
+ },
2432
+ "start": {
2433
+ "type": "integer"
2434
+ }
2435
+ },
2436
+ "required": [
2437
+ "start",
2438
+ "end"
2439
+ ],
2440
+ "type": "object"
2441
+ }
2442
+ },
2443
+ "required": [
2444
+ "kind",
2445
+ "blockId",
2446
+ "range"
2447
+ ],
2448
+ "type": "object"
2449
+ }
2450
+ },
2451
+ "required": [
2452
+ "target"
2453
+ ],
2454
+ "type": "object"
2455
+ }
2456
+ }
2457
+ },
2458
+ {
2459
+ "type": "function",
2460
+ "function": {
2461
+ "name": "doc_format_strikethrough",
2462
+ "description": "Toggle strikethrough formatting on the target range.",
2463
+ "parameters": {
2464
+ "additionalProperties": false,
2465
+ "properties": {
2466
+ "target": {
2467
+ "additionalProperties": false,
2468
+ "properties": {
2469
+ "blockId": {
2470
+ "type": "string"
2471
+ },
2472
+ "kind": {
2473
+ "const": "text"
2474
+ },
2475
+ "range": {
2476
+ "additionalProperties": false,
2477
+ "properties": {
2478
+ "end": {
2479
+ "type": "integer"
2480
+ },
2481
+ "start": {
2482
+ "type": "integer"
2483
+ }
2484
+ },
2485
+ "required": [
2486
+ "start",
2487
+ "end"
2488
+ ],
2489
+ "type": "object"
2490
+ }
2491
+ },
2492
+ "required": [
2493
+ "kind",
2494
+ "blockId",
2495
+ "range"
2496
+ ],
2497
+ "type": "object"
2498
+ }
2499
+ },
2500
+ "required": [
2501
+ "target"
2502
+ ],
2503
+ "type": "object"
2504
+ }
2505
+ }
2506
+ },
2507
+ {
2508
+ "type": "function",
2509
+ "function": {
2510
+ "name": "doc_create_paragraph",
2511
+ "description": "Create a new paragraph at the target position.",
2512
+ "parameters": {
2513
+ "additionalProperties": false,
2514
+ "properties": {
2515
+ "at": {
2516
+ "oneOf": [
2517
+ {
2518
+ "additionalProperties": false,
2519
+ "properties": {
2520
+ "kind": {
2521
+ "const": "documentStart"
2522
+ }
2523
+ },
2524
+ "required": [
2525
+ "kind"
2526
+ ],
2527
+ "type": "object"
2528
+ },
2529
+ {
2530
+ "additionalProperties": false,
2531
+ "properties": {
2532
+ "kind": {
2533
+ "const": "documentEnd"
2534
+ }
2535
+ },
2536
+ "required": [
2537
+ "kind"
2538
+ ],
2539
+ "type": "object"
2540
+ },
2541
+ {
2542
+ "additionalProperties": false,
2543
+ "properties": {
2544
+ "kind": {
2545
+ "const": "before"
2546
+ },
2547
+ "target": {
2548
+ "additionalProperties": false,
2549
+ "properties": {
2550
+ "kind": {
2551
+ "const": "block"
2552
+ },
2553
+ "nodeId": {
2554
+ "type": "string"
2555
+ },
2556
+ "nodeType": {
2557
+ "enum": [
2558
+ "paragraph",
2559
+ "heading",
2560
+ "listItem",
2561
+ "table",
2562
+ "tableRow",
2563
+ "tableCell",
2564
+ "image",
2565
+ "sdt"
2566
+ ]
2567
+ }
2568
+ },
2569
+ "required": [
2570
+ "kind",
2571
+ "nodeType",
2572
+ "nodeId"
2573
+ ],
2574
+ "type": "object"
2575
+ }
2576
+ },
2577
+ "required": [
2578
+ "kind",
2579
+ "target"
2580
+ ],
2581
+ "type": "object"
2582
+ },
2583
+ {
2584
+ "additionalProperties": false,
2585
+ "properties": {
2586
+ "kind": {
2587
+ "const": "after"
2588
+ },
2589
+ "target": {
2590
+ "additionalProperties": false,
2591
+ "properties": {
2592
+ "kind": {
2593
+ "const": "block"
2594
+ },
2595
+ "nodeId": {
2596
+ "type": "string"
2597
+ },
2598
+ "nodeType": {
2599
+ "enum": [
2600
+ "paragraph",
2601
+ "heading",
2602
+ "listItem",
2603
+ "table",
2604
+ "tableRow",
2605
+ "tableCell",
2606
+ "image",
2607
+ "sdt"
2608
+ ]
2609
+ }
2610
+ },
2611
+ "required": [
2612
+ "kind",
2613
+ "nodeType",
2614
+ "nodeId"
2615
+ ],
2616
+ "type": "object"
2617
+ }
2618
+ },
2619
+ "required": [
2620
+ "kind",
2621
+ "target"
2622
+ ],
2623
+ "type": "object"
2624
+ }
2625
+ ]
2626
+ },
2627
+ "text": {
2628
+ "type": "string"
2629
+ }
2630
+ },
2631
+ "type": "object"
2632
+ }
2633
+ }
2634
+ },
2635
+ {
2636
+ "type": "function",
2637
+ "function": {
2638
+ "name": "doc_lists_list",
2639
+ "description": "List all list nodes in the document, optionally filtered by scope.",
2640
+ "parameters": {
2641
+ "additionalProperties": false,
2642
+ "properties": {
2643
+ "kind": {
2644
+ "enum": [
2645
+ "ordered",
2646
+ "bullet"
2647
+ ]
2648
+ },
2649
+ "level": {
2650
+ "type": "integer"
2651
+ },
2652
+ "limit": {
2653
+ "type": "integer"
2654
+ },
2655
+ "offset": {
2656
+ "type": "integer"
2657
+ },
2658
+ "ordinal": {
2659
+ "type": "integer"
2660
+ },
2661
+ "within": {
2662
+ "additionalProperties": false,
2663
+ "properties": {
2664
+ "kind": {
2665
+ "const": "block"
2666
+ },
2667
+ "nodeId": {
2668
+ "type": "string"
2669
+ },
2670
+ "nodeType": {
2671
+ "enum": [
2672
+ "paragraph",
2673
+ "heading",
2674
+ "listItem",
2675
+ "table",
2676
+ "tableRow",
2677
+ "tableCell",
2678
+ "image",
2679
+ "sdt"
2680
+ ]
2681
+ }
2682
+ },
2683
+ "required": [
2684
+ "kind",
2685
+ "nodeType",
2686
+ "nodeId"
2687
+ ],
2688
+ "type": "object"
2689
+ }
2690
+ },
2691
+ "type": "object"
2692
+ }
2693
+ }
2694
+ },
2695
+ {
2696
+ "type": "function",
2697
+ "function": {
2698
+ "name": "doc_lists_get",
2699
+ "description": "Retrieve a specific list node by target.",
2700
+ "parameters": {
2701
+ "additionalProperties": false,
2702
+ "properties": {
2703
+ "address": {
2704
+ "additionalProperties": false,
2705
+ "properties": {
2706
+ "kind": {
2707
+ "const": "block"
2708
+ },
2709
+ "nodeId": {
2710
+ "type": "string"
2711
+ },
2712
+ "nodeType": {
2713
+ "const": "listItem"
2714
+ }
2715
+ },
2716
+ "required": [
2717
+ "kind",
2718
+ "nodeType",
2719
+ "nodeId"
2720
+ ],
2721
+ "type": "object"
2722
+ }
2723
+ },
2724
+ "required": [
2725
+ "address"
2726
+ ],
2727
+ "type": "object"
2728
+ }
2729
+ }
2730
+ },
2731
+ {
2732
+ "type": "function",
2733
+ "function": {
2734
+ "name": "doc_lists_insert",
2735
+ "description": "Insert a new list at the target position.",
2736
+ "parameters": {
2737
+ "additionalProperties": false,
2738
+ "properties": {
2739
+ "position": {
2740
+ "enum": [
2741
+ "before",
2742
+ "after"
2743
+ ]
2744
+ },
2745
+ "target": {
2746
+ "additionalProperties": false,
2747
+ "properties": {
2748
+ "kind": {
2749
+ "const": "block"
2750
+ },
2751
+ "nodeId": {
2752
+ "type": "string"
2753
+ },
2754
+ "nodeType": {
2755
+ "const": "listItem"
2756
+ }
2757
+ },
2758
+ "required": [
2759
+ "kind",
2760
+ "nodeType",
2761
+ "nodeId"
2762
+ ],
2763
+ "type": "object"
2764
+ },
2765
+ "text": {
2766
+ "type": "string"
2767
+ }
2768
+ },
2769
+ "required": [
2770
+ "target",
2771
+ "position"
2772
+ ],
2773
+ "type": "object"
2774
+ }
2775
+ }
2776
+ },
2777
+ {
2778
+ "type": "function",
2779
+ "function": {
2780
+ "name": "doc_lists_setType",
2781
+ "description": "Change the list type (ordered, unordered) of a target list.",
2782
+ "parameters": {
2783
+ "additionalProperties": false,
2784
+ "properties": {
2785
+ "kind": {
2786
+ "enum": [
2787
+ "ordered",
2788
+ "bullet"
2789
+ ]
2790
+ },
2791
+ "target": {
2792
+ "additionalProperties": false,
2793
+ "properties": {
2794
+ "kind": {
2795
+ "const": "block"
2796
+ },
2797
+ "nodeId": {
2798
+ "type": "string"
2799
+ },
2800
+ "nodeType": {
2801
+ "const": "listItem"
2802
+ }
2803
+ },
2804
+ "required": [
2805
+ "kind",
2806
+ "nodeType",
2807
+ "nodeId"
2808
+ ],
2809
+ "type": "object"
2810
+ }
2811
+ },
2812
+ "required": [
2813
+ "target",
2814
+ "kind"
2815
+ ],
2816
+ "type": "object"
2817
+ }
2818
+ }
2819
+ },
2820
+ {
2821
+ "type": "function",
2822
+ "function": {
2823
+ "name": "doc_lists_indent",
2824
+ "description": "Increase the indentation level of a list item.",
2825
+ "parameters": {
2826
+ "additionalProperties": false,
2827
+ "properties": {
2828
+ "target": {
2829
+ "additionalProperties": false,
2830
+ "properties": {
2831
+ "kind": {
2832
+ "const": "block"
2833
+ },
2834
+ "nodeId": {
2835
+ "type": "string"
2836
+ },
2837
+ "nodeType": {
2838
+ "const": "listItem"
2839
+ }
2840
+ },
2841
+ "required": [
2842
+ "kind",
2843
+ "nodeType",
2844
+ "nodeId"
2845
+ ],
2846
+ "type": "object"
2847
+ }
2848
+ },
2849
+ "required": [
2850
+ "target"
2851
+ ],
2852
+ "type": "object"
2853
+ }
2854
+ }
2855
+ },
2856
+ {
2857
+ "type": "function",
2858
+ "function": {
2859
+ "name": "doc_lists_outdent",
2860
+ "description": "Decrease the indentation level of a list item.",
2861
+ "parameters": {
2862
+ "additionalProperties": false,
2863
+ "properties": {
2864
+ "target": {
2865
+ "additionalProperties": false,
2866
+ "properties": {
2867
+ "kind": {
2868
+ "const": "block"
2869
+ },
2870
+ "nodeId": {
2871
+ "type": "string"
2872
+ },
2873
+ "nodeType": {
2874
+ "const": "listItem"
2875
+ }
2876
+ },
2877
+ "required": [
2878
+ "kind",
2879
+ "nodeType",
2880
+ "nodeId"
2881
+ ],
2882
+ "type": "object"
2883
+ }
2884
+ },
2885
+ "required": [
2886
+ "target"
2887
+ ],
2888
+ "type": "object"
2889
+ }
2890
+ }
2891
+ },
2892
+ {
2893
+ "type": "function",
2894
+ "function": {
2895
+ "name": "doc_lists_restart",
2896
+ "description": "Restart numbering of an ordered list at the target item.",
2897
+ "parameters": {
2898
+ "additionalProperties": false,
2899
+ "properties": {
2900
+ "target": {
2901
+ "additionalProperties": false,
2902
+ "properties": {
2903
+ "kind": {
2904
+ "const": "block"
2905
+ },
2906
+ "nodeId": {
2907
+ "type": "string"
2908
+ },
2909
+ "nodeType": {
2910
+ "const": "listItem"
2911
+ }
2912
+ },
2913
+ "required": [
2914
+ "kind",
2915
+ "nodeType",
2916
+ "nodeId"
2917
+ ],
2918
+ "type": "object"
2919
+ }
2920
+ },
2921
+ "required": [
2922
+ "target"
2923
+ ],
2924
+ "type": "object"
2925
+ }
2926
+ }
2927
+ },
2928
+ {
2929
+ "type": "function",
2930
+ "function": {
2931
+ "name": "doc_lists_exit",
2932
+ "description": "Exit a list context, converting the target item to a paragraph.",
2933
+ "parameters": {
2934
+ "additionalProperties": false,
2935
+ "properties": {
2936
+ "target": {
2937
+ "additionalProperties": false,
2938
+ "properties": {
2939
+ "kind": {
2940
+ "const": "block"
2941
+ },
2942
+ "nodeId": {
2943
+ "type": "string"
2944
+ },
2945
+ "nodeType": {
2946
+ "const": "listItem"
2947
+ }
2948
+ },
2949
+ "required": [
2950
+ "kind",
2951
+ "nodeType",
2952
+ "nodeId"
2953
+ ],
2954
+ "type": "object"
2955
+ }
2956
+ },
2957
+ "required": [
2958
+ "target"
2959
+ ],
2960
+ "type": "object"
2961
+ }
2962
+ }
2963
+ },
2964
+ {
2965
+ "type": "function",
2966
+ "function": {
2967
+ "name": "doc_comments_add",
2968
+ "description": "Add a new comment thread anchored to a target range.",
2969
+ "parameters": {
2970
+ "additionalProperties": false,
2971
+ "properties": {
2972
+ "target": {
2973
+ "additionalProperties": false,
2974
+ "properties": {
2975
+ "blockId": {
2976
+ "type": "string"
2977
+ },
2978
+ "kind": {
2979
+ "const": "text"
2980
+ },
2981
+ "range": {
2982
+ "additionalProperties": false,
2983
+ "properties": {
2984
+ "end": {
2985
+ "type": "integer"
2986
+ },
2987
+ "start": {
2988
+ "type": "integer"
2989
+ }
2990
+ },
2991
+ "required": [
2992
+ "start",
2993
+ "end"
2994
+ ],
2995
+ "type": "object"
2996
+ }
2997
+ },
2998
+ "required": [
2999
+ "kind",
3000
+ "blockId",
3001
+ "range"
3002
+ ],
3003
+ "type": "object"
3004
+ },
3005
+ "text": {
3006
+ "type": "string"
3007
+ }
3008
+ },
3009
+ "required": [
3010
+ "target",
3011
+ "text"
3012
+ ],
3013
+ "type": "object"
3014
+ }
3015
+ }
3016
+ },
3017
+ {
3018
+ "type": "function",
3019
+ "function": {
3020
+ "name": "doc_comments_edit",
3021
+ "description": "Edit the content of an existing comment.",
3022
+ "parameters": {
3023
+ "additionalProperties": false,
3024
+ "properties": {
3025
+ "commentId": {
3026
+ "type": "string"
3027
+ },
3028
+ "text": {
3029
+ "type": "string"
3030
+ }
3031
+ },
3032
+ "required": [
3033
+ "commentId",
3034
+ "text"
3035
+ ],
3036
+ "type": "object"
3037
+ }
3038
+ }
3039
+ },
3040
+ {
3041
+ "type": "function",
3042
+ "function": {
3043
+ "name": "doc_comments_reply",
3044
+ "description": "Add a reply to an existing comment thread.",
3045
+ "parameters": {
3046
+ "additionalProperties": false,
3047
+ "properties": {
3048
+ "parentCommentId": {
3049
+ "type": "string"
3050
+ },
3051
+ "text": {
3052
+ "type": "string"
3053
+ }
3054
+ },
3055
+ "required": [
3056
+ "parentCommentId",
3057
+ "text"
3058
+ ],
3059
+ "type": "object"
3060
+ }
3061
+ }
3062
+ },
3063
+ {
3064
+ "type": "function",
3065
+ "function": {
3066
+ "name": "doc_comments_move",
3067
+ "description": "Move a comment thread to a new anchor range.",
3068
+ "parameters": {
3069
+ "additionalProperties": false,
3070
+ "properties": {
3071
+ "commentId": {
3072
+ "type": "string"
3073
+ },
3074
+ "target": {
3075
+ "additionalProperties": false,
3076
+ "properties": {
3077
+ "blockId": {
3078
+ "type": "string"
3079
+ },
3080
+ "kind": {
3081
+ "const": "text"
3082
+ },
3083
+ "range": {
3084
+ "additionalProperties": false,
3085
+ "properties": {
3086
+ "end": {
3087
+ "type": "integer"
3088
+ },
3089
+ "start": {
3090
+ "type": "integer"
3091
+ }
3092
+ },
3093
+ "required": [
3094
+ "start",
3095
+ "end"
3096
+ ],
3097
+ "type": "object"
3098
+ }
3099
+ },
3100
+ "required": [
3101
+ "kind",
3102
+ "blockId",
3103
+ "range"
3104
+ ],
3105
+ "type": "object"
3106
+ }
3107
+ },
3108
+ "required": [
3109
+ "commentId",
3110
+ "target"
3111
+ ],
3112
+ "type": "object"
3113
+ }
3114
+ }
3115
+ },
3116
+ {
3117
+ "type": "function",
3118
+ "function": {
3119
+ "name": "doc_comments_resolve",
3120
+ "description": "Resolve or unresolve a comment thread.",
3121
+ "parameters": {
3122
+ "additionalProperties": false,
3123
+ "properties": {
3124
+ "commentId": {
3125
+ "type": "string"
3126
+ }
3127
+ },
3128
+ "required": [
3129
+ "commentId"
3130
+ ],
3131
+ "type": "object"
3132
+ }
3133
+ }
3134
+ },
3135
+ {
3136
+ "type": "function",
3137
+ "function": {
3138
+ "name": "doc_comments_remove",
3139
+ "description": "Remove a comment or reply by ID.",
3140
+ "parameters": {
3141
+ "additionalProperties": false,
3142
+ "properties": {
3143
+ "commentId": {
3144
+ "type": "string"
3145
+ }
3146
+ },
3147
+ "required": [
3148
+ "commentId"
3149
+ ],
3150
+ "type": "object"
3151
+ }
3152
+ }
3153
+ },
3154
+ {
3155
+ "type": "function",
3156
+ "function": {
3157
+ "name": "doc_comments_setInternal",
3158
+ "description": "Toggle the internal (private) flag on a comment thread.",
3159
+ "parameters": {
3160
+ "additionalProperties": false,
3161
+ "properties": {
3162
+ "commentId": {
3163
+ "type": "string"
3164
+ },
3165
+ "isInternal": {
3166
+ "type": "boolean"
3167
+ }
3168
+ },
3169
+ "required": [
3170
+ "commentId",
3171
+ "isInternal"
3172
+ ],
3173
+ "type": "object"
3174
+ }
3175
+ }
3176
+ },
3177
+ {
3178
+ "type": "function",
3179
+ "function": {
3180
+ "name": "doc_comments_setActive",
3181
+ "description": "Set the active (focused) comment thread for UI highlighting.",
3182
+ "parameters": {
3183
+ "additionalProperties": false,
3184
+ "properties": {
3185
+ "commentId": {
3186
+ "type": [
3187
+ "string",
3188
+ "null"
3189
+ ]
3190
+ }
3191
+ },
3192
+ "required": [
3193
+ "commentId"
3194
+ ],
3195
+ "type": "object"
3196
+ }
3197
+ }
3198
+ },
3199
+ {
3200
+ "type": "function",
3201
+ "function": {
3202
+ "name": "doc_comments_goTo",
3203
+ "description": "Scroll the viewport to a comment thread by ID.",
3204
+ "parameters": {
3205
+ "additionalProperties": false,
3206
+ "properties": {
3207
+ "commentId": {
3208
+ "type": "string"
3209
+ }
3210
+ },
3211
+ "required": [
3212
+ "commentId"
3213
+ ],
3214
+ "type": "object"
3215
+ }
3216
+ }
3217
+ },
3218
+ {
3219
+ "type": "function",
3220
+ "function": {
3221
+ "name": "doc_comments_get",
3222
+ "description": "Retrieve a single comment thread by ID.",
3223
+ "parameters": {
3224
+ "additionalProperties": false,
3225
+ "properties": {
3226
+ "commentId": {
3227
+ "type": "string"
3228
+ }
3229
+ },
3230
+ "required": [
3231
+ "commentId"
3232
+ ],
3233
+ "type": "object"
3234
+ }
3235
+ }
3236
+ },
3237
+ {
3238
+ "type": "function",
3239
+ "function": {
3240
+ "name": "doc_comments_list",
3241
+ "description": "List all comment threads in the document.",
3242
+ "parameters": {
3243
+ "additionalProperties": false,
3244
+ "properties": {
3245
+ "includeResolved": {
3246
+ "type": "boolean"
3247
+ }
3248
+ },
3249
+ "type": "object"
3250
+ }
3251
+ }
3252
+ },
3253
+ {
3254
+ "type": "function",
3255
+ "function": {
3256
+ "name": "doc_trackChanges_list",
3257
+ "description": "List all tracked changes in the document.",
3258
+ "parameters": {
3259
+ "additionalProperties": false,
3260
+ "properties": {
3261
+ "limit": {
3262
+ "type": "integer"
3263
+ },
3264
+ "offset": {
3265
+ "type": "integer"
3266
+ },
3267
+ "type": {
3268
+ "enum": [
3269
+ "insert",
3270
+ "delete",
3271
+ "format"
3272
+ ]
3273
+ }
3274
+ },
3275
+ "type": "object"
3276
+ }
3277
+ }
3278
+ },
3279
+ {
3280
+ "type": "function",
3281
+ "function": {
3282
+ "name": "doc_trackChanges_get",
3283
+ "description": "Retrieve a single tracked change by ID.",
3284
+ "parameters": {
3285
+ "additionalProperties": false,
3286
+ "properties": {
3287
+ "id": {
3288
+ "type": "string"
3289
+ }
3290
+ },
3291
+ "required": [
3292
+ "id"
3293
+ ],
3294
+ "type": "object"
3295
+ }
3296
+ }
3297
+ },
3298
+ {
3299
+ "type": "function",
3300
+ "function": {
3301
+ "name": "doc_trackChanges_accept",
3302
+ "description": "Accept a tracked change, applying it permanently.",
3303
+ "parameters": {
3304
+ "additionalProperties": false,
3305
+ "properties": {
3306
+ "id": {
3307
+ "type": "string"
3308
+ }
3309
+ },
3310
+ "required": [
3311
+ "id"
3312
+ ],
3313
+ "type": "object"
3314
+ }
3315
+ }
3316
+ },
3317
+ {
3318
+ "type": "function",
3319
+ "function": {
3320
+ "name": "doc_trackChanges_reject",
3321
+ "description": "Reject a tracked change, reverting it.",
3322
+ "parameters": {
3323
+ "additionalProperties": false,
3324
+ "properties": {
3325
+ "id": {
3326
+ "type": "string"
3327
+ }
3328
+ },
3329
+ "required": [
3330
+ "id"
3331
+ ],
3332
+ "type": "object"
3333
+ }
3334
+ }
3335
+ },
3336
+ {
3337
+ "type": "function",
3338
+ "function": {
3339
+ "name": "doc_trackChanges_acceptAll",
3340
+ "description": "Accept all tracked changes in the document.",
3341
+ "parameters": {
3342
+ "additionalProperties": false,
3343
+ "properties": {},
3344
+ "type": "object"
3345
+ }
3346
+ }
3347
+ },
3348
+ {
3349
+ "type": "function",
3350
+ "function": {
3351
+ "name": "doc_trackChanges_rejectAll",
3352
+ "description": "Reject all tracked changes in the document.",
3353
+ "parameters": {
3354
+ "additionalProperties": false,
3355
+ "properties": {},
3356
+ "type": "object"
3357
+ }
3358
+ }
3359
+ },
3360
+ {
3361
+ "type": "function",
3362
+ "function": {
3363
+ "name": "doc_open",
3364
+ "description": "Open a document and create a persistent editing session.",
3365
+ "parameters": {
3366
+ "type": "object",
3367
+ "properties": {
3368
+ "doc": {
3369
+ "type": "string"
3370
+ },
3371
+ "sessionId": {
3372
+ "type": "string"
3373
+ },
3374
+ "collaboration": {},
3375
+ "collabDocumentId": {
3376
+ "type": "string"
3377
+ },
3378
+ "collabUrl": {
3379
+ "type": "string"
3380
+ }
3381
+ },
3382
+ "required": [
3383
+ "doc"
3384
+ ],
3385
+ "additionalProperties": false
3386
+ }
3387
+ }
3388
+ },
3389
+ {
3390
+ "type": "function",
3391
+ "function": {
3392
+ "name": "doc_save",
3393
+ "description": "Save the current session to the original file or a new path.",
3394
+ "parameters": {
3395
+ "type": "object",
3396
+ "properties": {
3397
+ "sessionId": {
3398
+ "type": "string"
3399
+ },
3400
+ "force": {
3401
+ "type": "boolean"
3402
+ },
3403
+ "inPlace": {
3404
+ "type": "boolean"
3405
+ }
3406
+ },
3407
+ "additionalProperties": false
3408
+ }
3409
+ }
3410
+ },
3411
+ {
3412
+ "type": "function",
3413
+ "function": {
3414
+ "name": "doc_close",
3415
+ "description": "Close the active editing session and clean up resources.",
3416
+ "parameters": {
3417
+ "type": "object",
3418
+ "properties": {
3419
+ "sessionId": {
3420
+ "type": "string"
3421
+ },
3422
+ "discard": {
3423
+ "type": "boolean"
3424
+ }
3425
+ },
3426
+ "additionalProperties": false
3427
+ }
3428
+ }
3429
+ },
3430
+ {
3431
+ "type": "function",
3432
+ "function": {
3433
+ "name": "doc_status",
3434
+ "description": "Show the current session status and document metadata.",
3435
+ "parameters": {
3436
+ "type": "object",
3437
+ "properties": {
3438
+ "sessionId": {
3439
+ "type": "string"
3440
+ }
3441
+ },
3442
+ "additionalProperties": false
3443
+ }
3444
+ }
3445
+ },
3446
+ {
3447
+ "type": "function",
3448
+ "function": {
3449
+ "name": "doc_describe",
3450
+ "description": "List all available CLI operations and contract metadata.",
3451
+ "parameters": {
3452
+ "type": "object",
3453
+ "properties": {},
3454
+ "additionalProperties": false
3455
+ }
3456
+ }
3457
+ },
3458
+ {
3459
+ "type": "function",
3460
+ "function": {
3461
+ "name": "doc_describeCommand",
3462
+ "description": "Show detailed metadata for a single CLI operation.",
3463
+ "parameters": {
3464
+ "type": "object",
3465
+ "properties": {
3466
+ "operationId": {
3467
+ "type": "string"
3468
+ }
3469
+ },
3470
+ "required": [
3471
+ "operationId"
3472
+ ],
3473
+ "additionalProperties": false
3474
+ }
3475
+ }
3476
+ },
3477
+ {
3478
+ "type": "function",
3479
+ "function": {
3480
+ "name": "doc_session_list",
3481
+ "description": "List all active editing sessions.",
3482
+ "parameters": {
3483
+ "type": "object",
3484
+ "properties": {},
3485
+ "additionalProperties": false
3486
+ }
3487
+ }
3488
+ },
3489
+ {
3490
+ "type": "function",
3491
+ "function": {
3492
+ "name": "doc_session_save",
3493
+ "description": "Persist the current session state.",
3494
+ "parameters": {
3495
+ "type": "object",
3496
+ "properties": {
3497
+ "sessionId": {
3498
+ "type": "string"
3499
+ },
3500
+ "force": {
3501
+ "type": "boolean"
3502
+ },
3503
+ "inPlace": {
3504
+ "type": "boolean"
3505
+ }
3506
+ },
3507
+ "required": [
3508
+ "sessionId"
3509
+ ],
3510
+ "additionalProperties": false
3511
+ }
3512
+ }
3513
+ },
3514
+ {
3515
+ "type": "function",
3516
+ "function": {
3517
+ "name": "doc_session_close",
3518
+ "description": "Close a specific editing session by ID.",
3519
+ "parameters": {
3520
+ "type": "object",
3521
+ "properties": {
3522
+ "sessionId": {
3523
+ "type": "string"
3524
+ },
3525
+ "discard": {
3526
+ "type": "boolean"
3527
+ }
3528
+ },
3529
+ "required": [
3530
+ "sessionId"
3531
+ ],
3532
+ "additionalProperties": false
3533
+ }
3534
+ }
3535
+ },
3536
+ {
3537
+ "type": "function",
3538
+ "function": {
3539
+ "name": "doc_session_setDefault",
3540
+ "description": "Set the default session for subsequent commands.",
3541
+ "parameters": {
3542
+ "type": "object",
3543
+ "properties": {
3544
+ "sessionId": {
3545
+ "type": "string"
3546
+ }
3547
+ },
3548
+ "required": [
3549
+ "sessionId"
3550
+ ],
3551
+ "additionalProperties": false
3552
+ }
3553
+ }
3554
+ }
3555
+ ]
3556
+ }
3557
+ }