@superdoc-dev/sdk 1.0.0-alpha.1 → 1.0.0-alpha.10

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