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