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

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