@superdoc-dev/sdk 1.0.0-alpha.5 → 1.0.0-alpha.7

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