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