@superdoc-dev/sdk 1.0.0-alpha.29 → 1.0.0-alpha.30

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.
@@ -9021,8 +9021,8 @@
9021
9021
  {
9022
9022
  "type": "function",
9023
9023
  "function": {
9024
- "name": "create_comment",
9025
- "description": "Create a new comment thread (or reply when parentCommentId is given).",
9024
+ "name": "apply_list_template",
9025
+ "description": "Apply a captured ListTemplate to the target list, optionally filtered to specific levels.",
9026
9026
  "parameters": {
9027
9027
  "type": "object",
9028
9028
  "properties": {
@@ -9035,52 +9035,113 @@
9035
9035
  "force": {
9036
9036
  "type": "boolean"
9037
9037
  },
9038
- "text": {
9039
- "type": "string"
9040
- },
9041
9038
  "target": {
9042
9039
  "type": "object",
9043
9040
  "properties": {
9044
9041
  "kind": {
9045
- "const": "text"
9042
+ "const": "block"
9046
9043
  },
9047
- "blockId": {
9048
- "type": "string"
9044
+ "nodeType": {
9045
+ "const": "listItem"
9049
9046
  },
9050
- "range": {
9051
- "type": "object",
9052
- "properties": {
9053
- "start": {
9054
- "type": "number"
9055
- },
9056
- "end": {
9057
- "type": "number"
9058
- }
9059
- },
9060
- "required": [
9061
- "start",
9062
- "end"
9063
- ]
9047
+ "nodeId": {
9048
+ "type": "string"
9064
9049
  }
9065
9050
  },
9066
9051
  "required": [
9067
9052
  "kind",
9068
- "blockId",
9069
- "range"
9053
+ "nodeType",
9054
+ "nodeId"
9070
9055
  ]
9071
9056
  },
9072
- "parentId": {
9073
- "type": "string"
9074
- },
9075
- "blockId": {
9076
- "type": "string"
9057
+ "template": {
9058
+ "type": "object",
9059
+ "properties": {
9060
+ "version": {
9061
+ "const": 1
9062
+ },
9063
+ "levels": {
9064
+ "type": "array",
9065
+ "items": {
9066
+ "type": "object",
9067
+ "properties": {
9068
+ "level": {
9069
+ "type": "number"
9070
+ },
9071
+ "numFmt": {
9072
+ "type": "string"
9073
+ },
9074
+ "lvlText": {
9075
+ "type": "string"
9076
+ },
9077
+ "start": {
9078
+ "type": "number"
9079
+ },
9080
+ "alignment": {
9081
+ "oneOf": [
9082
+ {
9083
+ "const": "left"
9084
+ },
9085
+ {
9086
+ "const": "center"
9087
+ },
9088
+ {
9089
+ "const": "right"
9090
+ }
9091
+ ]
9092
+ },
9093
+ "indents": {
9094
+ "type": "object",
9095
+ "properties": {
9096
+ "left": {
9097
+ "type": "number"
9098
+ },
9099
+ "hanging": {
9100
+ "type": "number"
9101
+ },
9102
+ "firstLine": {
9103
+ "type": "number"
9104
+ }
9105
+ }
9106
+ },
9107
+ "trailingCharacter": {
9108
+ "oneOf": [
9109
+ {
9110
+ "const": "tab"
9111
+ },
9112
+ {
9113
+ "const": "space"
9114
+ },
9115
+ {
9116
+ "const": "nothing"
9117
+ }
9118
+ ]
9119
+ },
9120
+ "markerFont": {
9121
+ "type": "string"
9122
+ },
9123
+ "pictureBulletId": {
9124
+ "type": "number"
9125
+ }
9126
+ },
9127
+ "required": [
9128
+ "level"
9129
+ ]
9130
+ }
9131
+ }
9132
+ },
9133
+ "required": [
9134
+ "version",
9135
+ "levels"
9136
+ ]
9077
9137
  },
9078
- "start": {
9079
- "type": "number"
9138
+ "levels": {
9139
+ "type": "array",
9140
+ "items": {
9141
+ "type": "number"
9142
+ }
9080
9143
  },
9081
- "end": {
9082
- "type": "number"
9083
- }
9144
+ "input": {}
9084
9145
  },
9085
9146
  "additionalProperties": false
9086
9147
  }
@@ -9089,8 +9150,8 @@
9089
9150
  {
9090
9151
  "type": "function",
9091
9152
  "function": {
9092
- "name": "patch_comment",
9093
- "description": "Patch fields on an existing comment (text, target, status, or isInternal).",
9153
+ "name": "apply_list_preset",
9154
+ "description": "Apply a built-in list formatting preset to the target list.",
9094
9155
  "parameters": {
9095
9156
  "type": "object",
9096
9157
  "properties": {
@@ -9103,58 +9164,35 @@
9103
9164
  "force": {
9104
9165
  "type": "boolean"
9105
9166
  },
9106
- "id": {
9107
- "type": "string"
9108
- },
9109
- "text": {
9110
- "type": "string"
9111
- },
9112
9167
  "target": {
9113
9168
  "type": "object",
9114
9169
  "properties": {
9115
9170
  "kind": {
9116
- "const": "text"
9171
+ "const": "block"
9117
9172
  },
9118
- "blockId": {
9119
- "type": "string"
9173
+ "nodeType": {
9174
+ "const": "listItem"
9120
9175
  },
9121
- "range": {
9122
- "type": "object",
9123
- "properties": {
9124
- "start": {
9125
- "type": "number"
9126
- },
9127
- "end": {
9128
- "type": "number"
9129
- }
9130
- },
9131
- "required": [
9132
- "start",
9133
- "end"
9134
- ]
9176
+ "nodeId": {
9177
+ "type": "string"
9135
9178
  }
9136
9179
  },
9137
9180
  "required": [
9138
9181
  "kind",
9139
- "blockId",
9140
- "range"
9182
+ "nodeType",
9183
+ "nodeId"
9141
9184
  ]
9142
9185
  },
9143
- "status": {
9144
- "type": "string"
9145
- },
9146
- "isInternal": {
9147
- "type": "boolean"
9148
- },
9149
- "blockId": {
9186
+ "preset": {
9150
9187
  "type": "string"
9151
9188
  },
9152
- "start": {
9153
- "type": "number"
9189
+ "levels": {
9190
+ "type": "array",
9191
+ "items": {
9192
+ "type": "number"
9193
+ }
9154
9194
  },
9155
- "end": {
9156
- "type": "number"
9157
- }
9195
+ "input": {}
9158
9196
  },
9159
9197
  "additionalProperties": false
9160
9198
  }
@@ -9163,8 +9201,8 @@
9163
9201
  {
9164
9202
  "type": "function",
9165
9203
  "function": {
9166
- "name": "delete_comment",
9167
- "description": "Remove a comment or reply by ID.",
9204
+ "name": "capture_list_template",
9205
+ "description": "Capture the formatting of a list as a reusable ListTemplate.",
9168
9206
  "parameters": {
9169
9207
  "type": "object",
9170
9208
  "properties": {
@@ -9174,16 +9212,33 @@
9174
9212
  "sessionId": {
9175
9213
  "type": "string"
9176
9214
  },
9177
- "force": {
9178
- "type": "boolean"
9215
+ "target": {
9216
+ "type": "object",
9217
+ "properties": {
9218
+ "kind": {
9219
+ "const": "block"
9220
+ },
9221
+ "nodeType": {
9222
+ "const": "listItem"
9223
+ },
9224
+ "nodeId": {
9225
+ "type": "string"
9226
+ }
9227
+ },
9228
+ "required": [
9229
+ "kind",
9230
+ "nodeType",
9231
+ "nodeId"
9232
+ ]
9179
9233
  },
9180
- "id": {
9181
- "type": "string"
9182
- }
9234
+ "levels": {
9235
+ "type": "array",
9236
+ "items": {
9237
+ "type": "number"
9238
+ }
9239
+ },
9240
+ "input": {}
9183
9241
  },
9184
- "required": [
9185
- "id"
9186
- ],
9187
9242
  "additionalProperties": false
9188
9243
  }
9189
9244
  }
@@ -9191,8 +9246,8 @@
9191
9246
  {
9192
9247
  "type": "function",
9193
9248
  "function": {
9194
- "name": "get_comment",
9195
- "description": "Retrieve a single comment thread by ID.",
9249
+ "name": "set_list_level_numbering",
9250
+ "description": "Set the numbering format, pattern, and optional start value for a specific list level.",
9196
9251
  "parameters": {
9197
9252
  "type": "object",
9198
9253
  "properties": {
@@ -9202,13 +9257,42 @@
9202
9257
  "sessionId": {
9203
9258
  "type": "string"
9204
9259
  },
9205
- "id": {
9260
+ "force": {
9261
+ "type": "boolean"
9262
+ },
9263
+ "target": {
9264
+ "type": "object",
9265
+ "properties": {
9266
+ "kind": {
9267
+ "const": "block"
9268
+ },
9269
+ "nodeType": {
9270
+ "const": "listItem"
9271
+ },
9272
+ "nodeId": {
9273
+ "type": "string"
9274
+ }
9275
+ },
9276
+ "required": [
9277
+ "kind",
9278
+ "nodeType",
9279
+ "nodeId"
9280
+ ]
9281
+ },
9282
+ "level": {
9283
+ "type": "number"
9284
+ },
9285
+ "numFmt": {
9206
9286
  "type": "string"
9207
- }
9287
+ },
9288
+ "lvlText": {
9289
+ "type": "string"
9290
+ },
9291
+ "start": {
9292
+ "type": "number"
9293
+ },
9294
+ "input": {}
9208
9295
  },
9209
- "required": [
9210
- "id"
9211
- ],
9212
9296
  "additionalProperties": false
9213
9297
  }
9214
9298
  }
@@ -9216,8 +9300,8 @@
9216
9300
  {
9217
9301
  "type": "function",
9218
9302
  "function": {
9219
- "name": "list_comments",
9220
- "description": "List all comment threads in the document.",
9303
+ "name": "set_list_level_bullet",
9304
+ "description": "Set the bullet marker text for a specific list level.",
9221
9305
  "parameters": {
9222
9306
  "type": "object",
9223
9307
  "properties": {
@@ -9227,15 +9311,35 @@
9227
9311
  "sessionId": {
9228
9312
  "type": "string"
9229
9313
  },
9230
- "includeResolved": {
9314
+ "force": {
9231
9315
  "type": "boolean"
9232
9316
  },
9233
- "limit": {
9234
- "type": "number"
9317
+ "target": {
9318
+ "type": "object",
9319
+ "properties": {
9320
+ "kind": {
9321
+ "const": "block"
9322
+ },
9323
+ "nodeType": {
9324
+ "const": "listItem"
9325
+ },
9326
+ "nodeId": {
9327
+ "type": "string"
9328
+ }
9329
+ },
9330
+ "required": [
9331
+ "kind",
9332
+ "nodeType",
9333
+ "nodeId"
9334
+ ]
9235
9335
  },
9236
- "offset": {
9336
+ "level": {
9237
9337
  "type": "number"
9238
- }
9338
+ },
9339
+ "markerText": {
9340
+ "type": "string"
9341
+ },
9342
+ "input": {}
9239
9343
  },
9240
9344
  "additionalProperties": false
9241
9345
  }
@@ -9244,8 +9348,8 @@
9244
9348
  {
9245
9349
  "type": "function",
9246
9350
  "function": {
9247
- "name": "list_tracked_changes",
9248
- "description": "List all tracked changes in the document.",
9351
+ "name": "set_list_level_picture_bullet",
9352
+ "description": "Set a picture bullet for a specific list level by its OOXML lvlPicBulletId.",
9249
9353
  "parameters": {
9250
9354
  "type": "object",
9251
9355
  "properties": {
@@ -9255,16 +9359,530 @@
9255
9359
  "sessionId": {
9256
9360
  "type": "string"
9257
9361
  },
9258
- "limit": {
9259
- "type": "number"
9260
- },
9261
- "offset": {
9262
- "type": "number"
9362
+ "force": {
9363
+ "type": "boolean"
9263
9364
  },
9264
- "type": {
9265
- "type": "string"
9266
- }
9267
- },
9365
+ "target": {
9366
+ "type": "object",
9367
+ "properties": {
9368
+ "kind": {
9369
+ "const": "block"
9370
+ },
9371
+ "nodeType": {
9372
+ "const": "listItem"
9373
+ },
9374
+ "nodeId": {
9375
+ "type": "string"
9376
+ }
9377
+ },
9378
+ "required": [
9379
+ "kind",
9380
+ "nodeType",
9381
+ "nodeId"
9382
+ ]
9383
+ },
9384
+ "level": {
9385
+ "type": "number"
9386
+ },
9387
+ "pictureBulletId": {
9388
+ "type": "number"
9389
+ },
9390
+ "input": {}
9391
+ },
9392
+ "additionalProperties": false
9393
+ }
9394
+ }
9395
+ },
9396
+ {
9397
+ "type": "function",
9398
+ "function": {
9399
+ "name": "set_list_level_alignment",
9400
+ "description": "Set the marker alignment (left, center, right) for a specific list level.",
9401
+ "parameters": {
9402
+ "type": "object",
9403
+ "properties": {
9404
+ "doc": {
9405
+ "type": "string"
9406
+ },
9407
+ "sessionId": {
9408
+ "type": "string"
9409
+ },
9410
+ "force": {
9411
+ "type": "boolean"
9412
+ },
9413
+ "target": {
9414
+ "type": "object",
9415
+ "properties": {
9416
+ "kind": {
9417
+ "const": "block"
9418
+ },
9419
+ "nodeType": {
9420
+ "const": "listItem"
9421
+ },
9422
+ "nodeId": {
9423
+ "type": "string"
9424
+ }
9425
+ },
9426
+ "required": [
9427
+ "kind",
9428
+ "nodeType",
9429
+ "nodeId"
9430
+ ]
9431
+ },
9432
+ "level": {
9433
+ "type": "number"
9434
+ },
9435
+ "alignment": {
9436
+ "type": "string"
9437
+ },
9438
+ "input": {}
9439
+ },
9440
+ "additionalProperties": false
9441
+ }
9442
+ }
9443
+ },
9444
+ {
9445
+ "type": "function",
9446
+ "function": {
9447
+ "name": "set_list_level_indents",
9448
+ "description": "Set the paragraph indentation values (left, hanging, firstLine) for a specific list level.",
9449
+ "parameters": {
9450
+ "type": "object",
9451
+ "properties": {
9452
+ "doc": {
9453
+ "type": "string"
9454
+ },
9455
+ "sessionId": {
9456
+ "type": "string"
9457
+ },
9458
+ "force": {
9459
+ "type": "boolean"
9460
+ },
9461
+ "target": {
9462
+ "type": "object",
9463
+ "properties": {
9464
+ "kind": {
9465
+ "const": "block"
9466
+ },
9467
+ "nodeType": {
9468
+ "const": "listItem"
9469
+ },
9470
+ "nodeId": {
9471
+ "type": "string"
9472
+ }
9473
+ },
9474
+ "required": [
9475
+ "kind",
9476
+ "nodeType",
9477
+ "nodeId"
9478
+ ]
9479
+ },
9480
+ "level": {
9481
+ "type": "number"
9482
+ },
9483
+ "left": {
9484
+ "type": "number"
9485
+ },
9486
+ "hanging": {
9487
+ "type": "number"
9488
+ },
9489
+ "firstLine": {
9490
+ "type": "number"
9491
+ },
9492
+ "input": {}
9493
+ },
9494
+ "additionalProperties": false
9495
+ }
9496
+ }
9497
+ },
9498
+ {
9499
+ "type": "function",
9500
+ "function": {
9501
+ "name": "set_list_level_trailing_character",
9502
+ "description": "Set the trailing character (tab, space, nothing) after the marker for a specific list level.",
9503
+ "parameters": {
9504
+ "type": "object",
9505
+ "properties": {
9506
+ "doc": {
9507
+ "type": "string"
9508
+ },
9509
+ "sessionId": {
9510
+ "type": "string"
9511
+ },
9512
+ "force": {
9513
+ "type": "boolean"
9514
+ },
9515
+ "target": {
9516
+ "type": "object",
9517
+ "properties": {
9518
+ "kind": {
9519
+ "const": "block"
9520
+ },
9521
+ "nodeType": {
9522
+ "const": "listItem"
9523
+ },
9524
+ "nodeId": {
9525
+ "type": "string"
9526
+ }
9527
+ },
9528
+ "required": [
9529
+ "kind",
9530
+ "nodeType",
9531
+ "nodeId"
9532
+ ]
9533
+ },
9534
+ "level": {
9535
+ "type": "number"
9536
+ },
9537
+ "trailingCharacter": {
9538
+ "type": "string"
9539
+ },
9540
+ "input": {}
9541
+ },
9542
+ "additionalProperties": false
9543
+ }
9544
+ }
9545
+ },
9546
+ {
9547
+ "type": "function",
9548
+ "function": {
9549
+ "name": "set_list_level_marker_font",
9550
+ "description": "Set the font family used for the marker character at a specific list level.",
9551
+ "parameters": {
9552
+ "type": "object",
9553
+ "properties": {
9554
+ "doc": {
9555
+ "type": "string"
9556
+ },
9557
+ "sessionId": {
9558
+ "type": "string"
9559
+ },
9560
+ "force": {
9561
+ "type": "boolean"
9562
+ },
9563
+ "target": {
9564
+ "type": "object",
9565
+ "properties": {
9566
+ "kind": {
9567
+ "const": "block"
9568
+ },
9569
+ "nodeType": {
9570
+ "const": "listItem"
9571
+ },
9572
+ "nodeId": {
9573
+ "type": "string"
9574
+ }
9575
+ },
9576
+ "required": [
9577
+ "kind",
9578
+ "nodeType",
9579
+ "nodeId"
9580
+ ]
9581
+ },
9582
+ "level": {
9583
+ "type": "number"
9584
+ },
9585
+ "fontFamily": {
9586
+ "type": "string"
9587
+ },
9588
+ "input": {}
9589
+ },
9590
+ "additionalProperties": false
9591
+ }
9592
+ }
9593
+ },
9594
+ {
9595
+ "type": "function",
9596
+ "function": {
9597
+ "name": "clear_list_level_overrides",
9598
+ "description": "Remove instance-level overrides for a specific list level, restoring abstract definition values.",
9599
+ "parameters": {
9600
+ "type": "object",
9601
+ "properties": {
9602
+ "doc": {
9603
+ "type": "string"
9604
+ },
9605
+ "sessionId": {
9606
+ "type": "string"
9607
+ },
9608
+ "force": {
9609
+ "type": "boolean"
9610
+ },
9611
+ "target": {
9612
+ "type": "object",
9613
+ "properties": {
9614
+ "kind": {
9615
+ "const": "block"
9616
+ },
9617
+ "nodeType": {
9618
+ "const": "listItem"
9619
+ },
9620
+ "nodeId": {
9621
+ "type": "string"
9622
+ }
9623
+ },
9624
+ "required": [
9625
+ "kind",
9626
+ "nodeType",
9627
+ "nodeId"
9628
+ ]
9629
+ },
9630
+ "level": {
9631
+ "type": "number"
9632
+ },
9633
+ "input": {}
9634
+ },
9635
+ "additionalProperties": false
9636
+ }
9637
+ }
9638
+ },
9639
+ {
9640
+ "type": "function",
9641
+ "function": {
9642
+ "name": "create_comment",
9643
+ "description": "Create a new comment thread (or reply when parentCommentId is given).",
9644
+ "parameters": {
9645
+ "type": "object",
9646
+ "properties": {
9647
+ "doc": {
9648
+ "type": "string"
9649
+ },
9650
+ "sessionId": {
9651
+ "type": "string"
9652
+ },
9653
+ "force": {
9654
+ "type": "boolean"
9655
+ },
9656
+ "text": {
9657
+ "type": "string"
9658
+ },
9659
+ "target": {
9660
+ "type": "object",
9661
+ "properties": {
9662
+ "kind": {
9663
+ "const": "text"
9664
+ },
9665
+ "blockId": {
9666
+ "type": "string"
9667
+ },
9668
+ "range": {
9669
+ "type": "object",
9670
+ "properties": {
9671
+ "start": {
9672
+ "type": "number"
9673
+ },
9674
+ "end": {
9675
+ "type": "number"
9676
+ }
9677
+ },
9678
+ "required": [
9679
+ "start",
9680
+ "end"
9681
+ ]
9682
+ }
9683
+ },
9684
+ "required": [
9685
+ "kind",
9686
+ "blockId",
9687
+ "range"
9688
+ ]
9689
+ },
9690
+ "parentId": {
9691
+ "type": "string"
9692
+ },
9693
+ "blockId": {
9694
+ "type": "string"
9695
+ },
9696
+ "start": {
9697
+ "type": "number"
9698
+ },
9699
+ "end": {
9700
+ "type": "number"
9701
+ }
9702
+ },
9703
+ "additionalProperties": false
9704
+ }
9705
+ }
9706
+ },
9707
+ {
9708
+ "type": "function",
9709
+ "function": {
9710
+ "name": "patch_comment",
9711
+ "description": "Patch fields on an existing comment (text, target, status, or isInternal).",
9712
+ "parameters": {
9713
+ "type": "object",
9714
+ "properties": {
9715
+ "doc": {
9716
+ "type": "string"
9717
+ },
9718
+ "sessionId": {
9719
+ "type": "string"
9720
+ },
9721
+ "force": {
9722
+ "type": "boolean"
9723
+ },
9724
+ "id": {
9725
+ "type": "string"
9726
+ },
9727
+ "text": {
9728
+ "type": "string"
9729
+ },
9730
+ "target": {
9731
+ "type": "object",
9732
+ "properties": {
9733
+ "kind": {
9734
+ "const": "text"
9735
+ },
9736
+ "blockId": {
9737
+ "type": "string"
9738
+ },
9739
+ "range": {
9740
+ "type": "object",
9741
+ "properties": {
9742
+ "start": {
9743
+ "type": "number"
9744
+ },
9745
+ "end": {
9746
+ "type": "number"
9747
+ }
9748
+ },
9749
+ "required": [
9750
+ "start",
9751
+ "end"
9752
+ ]
9753
+ }
9754
+ },
9755
+ "required": [
9756
+ "kind",
9757
+ "blockId",
9758
+ "range"
9759
+ ]
9760
+ },
9761
+ "status": {
9762
+ "type": "string"
9763
+ },
9764
+ "isInternal": {
9765
+ "type": "boolean"
9766
+ },
9767
+ "blockId": {
9768
+ "type": "string"
9769
+ },
9770
+ "start": {
9771
+ "type": "number"
9772
+ },
9773
+ "end": {
9774
+ "type": "number"
9775
+ }
9776
+ },
9777
+ "additionalProperties": false
9778
+ }
9779
+ }
9780
+ },
9781
+ {
9782
+ "type": "function",
9783
+ "function": {
9784
+ "name": "delete_comment",
9785
+ "description": "Remove a comment or reply by ID.",
9786
+ "parameters": {
9787
+ "type": "object",
9788
+ "properties": {
9789
+ "doc": {
9790
+ "type": "string"
9791
+ },
9792
+ "sessionId": {
9793
+ "type": "string"
9794
+ },
9795
+ "force": {
9796
+ "type": "boolean"
9797
+ },
9798
+ "id": {
9799
+ "type": "string"
9800
+ }
9801
+ },
9802
+ "required": [
9803
+ "id"
9804
+ ],
9805
+ "additionalProperties": false
9806
+ }
9807
+ }
9808
+ },
9809
+ {
9810
+ "type": "function",
9811
+ "function": {
9812
+ "name": "get_comment",
9813
+ "description": "Retrieve a single comment thread by ID.",
9814
+ "parameters": {
9815
+ "type": "object",
9816
+ "properties": {
9817
+ "doc": {
9818
+ "type": "string"
9819
+ },
9820
+ "sessionId": {
9821
+ "type": "string"
9822
+ },
9823
+ "id": {
9824
+ "type": "string"
9825
+ }
9826
+ },
9827
+ "required": [
9828
+ "id"
9829
+ ],
9830
+ "additionalProperties": false
9831
+ }
9832
+ }
9833
+ },
9834
+ {
9835
+ "type": "function",
9836
+ "function": {
9837
+ "name": "list_comments",
9838
+ "description": "List all comment threads in the document.",
9839
+ "parameters": {
9840
+ "type": "object",
9841
+ "properties": {
9842
+ "doc": {
9843
+ "type": "string"
9844
+ },
9845
+ "sessionId": {
9846
+ "type": "string"
9847
+ },
9848
+ "includeResolved": {
9849
+ "type": "boolean"
9850
+ },
9851
+ "limit": {
9852
+ "type": "number"
9853
+ },
9854
+ "offset": {
9855
+ "type": "number"
9856
+ }
9857
+ },
9858
+ "additionalProperties": false
9859
+ }
9860
+ }
9861
+ },
9862
+ {
9863
+ "type": "function",
9864
+ "function": {
9865
+ "name": "list_tracked_changes",
9866
+ "description": "List all tracked changes in the document.",
9867
+ "parameters": {
9868
+ "type": "object",
9869
+ "properties": {
9870
+ "doc": {
9871
+ "type": "string"
9872
+ },
9873
+ "sessionId": {
9874
+ "type": "string"
9875
+ },
9876
+ "limit": {
9877
+ "type": "number"
9878
+ },
9879
+ "offset": {
9880
+ "type": "number"
9881
+ },
9882
+ "type": {
9883
+ "type": "string"
9884
+ }
9885
+ },
9268
9886
  "additionalProperties": false
9269
9887
  }
9270
9888
  }
@@ -21118,15 +21736,290 @@
21118
21736
  "sectionId"
21119
21737
  ]
21120
21738
  },
21121
- "header": {
21122
- "type": "number"
21739
+ "header": {
21740
+ "type": "number"
21741
+ },
21742
+ "footer": {
21743
+ "type": "number"
21744
+ }
21745
+ },
21746
+ "required": [
21747
+ "target"
21748
+ ],
21749
+ "additionalProperties": false
21750
+ }
21751
+ }
21752
+ },
21753
+ {
21754
+ "type": "function",
21755
+ "function": {
21756
+ "name": "doc_sections_setPageSetup",
21757
+ "description": "Set page size/orientation properties for a section.",
21758
+ "parameters": {
21759
+ "type": "object",
21760
+ "properties": {
21761
+ "doc": {
21762
+ "type": "string"
21763
+ },
21764
+ "sessionId": {
21765
+ "type": "string"
21766
+ },
21767
+ "force": {
21768
+ "type": "boolean"
21769
+ },
21770
+ "target": {
21771
+ "type": "object",
21772
+ "properties": {
21773
+ "kind": {
21774
+ "const": "section"
21775
+ },
21776
+ "sectionId": {
21777
+ "type": "string"
21778
+ }
21779
+ },
21780
+ "required": [
21781
+ "kind",
21782
+ "sectionId"
21783
+ ]
21784
+ },
21785
+ "width": {
21786
+ "type": "number"
21787
+ },
21788
+ "height": {
21789
+ "type": "number"
21790
+ },
21791
+ "orientation": {
21792
+ "type": "string"
21793
+ },
21794
+ "paperSize": {
21795
+ "type": "string"
21796
+ }
21797
+ },
21798
+ "required": [
21799
+ "target"
21800
+ ],
21801
+ "additionalProperties": false
21802
+ }
21803
+ }
21804
+ },
21805
+ {
21806
+ "type": "function",
21807
+ "function": {
21808
+ "name": "doc_sections_setColumns",
21809
+ "description": "Set column configuration for a section.",
21810
+ "parameters": {
21811
+ "type": "object",
21812
+ "properties": {
21813
+ "doc": {
21814
+ "type": "string"
21815
+ },
21816
+ "sessionId": {
21817
+ "type": "string"
21818
+ },
21819
+ "force": {
21820
+ "type": "boolean"
21821
+ },
21822
+ "target": {
21823
+ "type": "object",
21824
+ "properties": {
21825
+ "kind": {
21826
+ "const": "section"
21827
+ },
21828
+ "sectionId": {
21829
+ "type": "string"
21830
+ }
21831
+ },
21832
+ "required": [
21833
+ "kind",
21834
+ "sectionId"
21835
+ ]
21836
+ },
21837
+ "count": {
21838
+ "type": "number"
21839
+ },
21840
+ "gap": {
21841
+ "type": "number"
21842
+ },
21843
+ "equalWidth": {
21844
+ "type": "boolean"
21845
+ }
21846
+ },
21847
+ "required": [
21848
+ "target"
21849
+ ],
21850
+ "additionalProperties": false
21851
+ }
21852
+ }
21853
+ },
21854
+ {
21855
+ "type": "function",
21856
+ "function": {
21857
+ "name": "doc_sections_setLineNumbering",
21858
+ "description": "Enable or configure line numbering for a section.",
21859
+ "parameters": {
21860
+ "type": "object",
21861
+ "properties": {
21862
+ "doc": {
21863
+ "type": "string"
21864
+ },
21865
+ "sessionId": {
21866
+ "type": "string"
21867
+ },
21868
+ "force": {
21869
+ "type": "boolean"
21870
+ },
21871
+ "target": {
21872
+ "type": "object",
21873
+ "properties": {
21874
+ "kind": {
21875
+ "const": "section"
21876
+ },
21877
+ "sectionId": {
21878
+ "type": "string"
21879
+ }
21880
+ },
21881
+ "required": [
21882
+ "kind",
21883
+ "sectionId"
21884
+ ]
21885
+ },
21886
+ "enabled": {
21887
+ "type": "boolean"
21888
+ },
21889
+ "countBy": {
21890
+ "type": "number"
21891
+ },
21892
+ "start": {
21893
+ "type": "number"
21894
+ },
21895
+ "distance": {
21896
+ "type": "number"
21897
+ },
21898
+ "restart": {
21899
+ "type": "string"
21900
+ }
21901
+ },
21902
+ "required": [
21903
+ "target",
21904
+ "enabled"
21905
+ ],
21906
+ "additionalProperties": false
21907
+ }
21908
+ }
21909
+ },
21910
+ {
21911
+ "type": "function",
21912
+ "function": {
21913
+ "name": "doc_sections_setPageNumbering",
21914
+ "description": "Set page numbering format/start for a section.",
21915
+ "parameters": {
21916
+ "type": "object",
21917
+ "properties": {
21918
+ "doc": {
21919
+ "type": "string"
21920
+ },
21921
+ "sessionId": {
21922
+ "type": "string"
21923
+ },
21924
+ "force": {
21925
+ "type": "boolean"
21926
+ },
21927
+ "target": {
21928
+ "type": "object",
21929
+ "properties": {
21930
+ "kind": {
21931
+ "const": "section"
21932
+ },
21933
+ "sectionId": {
21934
+ "type": "string"
21935
+ }
21936
+ },
21937
+ "required": [
21938
+ "kind",
21939
+ "sectionId"
21940
+ ]
21941
+ },
21942
+ "start": {
21943
+ "type": "number"
21944
+ },
21945
+ "format": {
21946
+ "type": "string"
21947
+ }
21948
+ },
21949
+ "required": [
21950
+ "target"
21951
+ ],
21952
+ "additionalProperties": false
21953
+ }
21954
+ }
21955
+ },
21956
+ {
21957
+ "type": "function",
21958
+ "function": {
21959
+ "name": "doc_sections_setTitlePage",
21960
+ "description": "Enable or disable title-page behavior for a section.",
21961
+ "parameters": {
21962
+ "type": "object",
21963
+ "properties": {
21964
+ "doc": {
21965
+ "type": "string"
21966
+ },
21967
+ "sessionId": {
21968
+ "type": "string"
21969
+ },
21970
+ "force": {
21971
+ "type": "boolean"
21972
+ },
21973
+ "target": {
21974
+ "type": "object",
21975
+ "properties": {
21976
+ "kind": {
21977
+ "const": "section"
21978
+ },
21979
+ "sectionId": {
21980
+ "type": "string"
21981
+ }
21982
+ },
21983
+ "required": [
21984
+ "kind",
21985
+ "sectionId"
21986
+ ]
21987
+ },
21988
+ "enabled": {
21989
+ "type": "boolean"
21990
+ }
21991
+ },
21992
+ "required": [
21993
+ "target",
21994
+ "enabled"
21995
+ ],
21996
+ "additionalProperties": false
21997
+ }
21998
+ }
21999
+ },
22000
+ {
22001
+ "type": "function",
22002
+ "function": {
22003
+ "name": "doc_sections_setOddEvenHeadersFooters",
22004
+ "description": "Enable or disable odd/even header-footer mode in document settings.",
22005
+ "parameters": {
22006
+ "type": "object",
22007
+ "properties": {
22008
+ "doc": {
22009
+ "type": "string"
21123
22010
  },
21124
- "footer": {
21125
- "type": "number"
22011
+ "sessionId": {
22012
+ "type": "string"
22013
+ },
22014
+ "force": {
22015
+ "type": "boolean"
22016
+ },
22017
+ "enabled": {
22018
+ "type": "boolean"
21126
22019
  }
21127
22020
  },
21128
22021
  "required": [
21129
- "target"
22022
+ "enabled"
21130
22023
  ],
21131
22024
  "additionalProperties": false
21132
22025
  }
@@ -21135,8 +22028,8 @@
21135
22028
  {
21136
22029
  "type": "function",
21137
22030
  "function": {
21138
- "name": "doc_sections_setPageSetup",
21139
- "description": "Set page size/orientation properties for a section.",
22031
+ "name": "doc_sections_setVerticalAlign",
22032
+ "description": "Set vertical page alignment for a section.",
21140
22033
  "parameters": {
21141
22034
  "type": "object",
21142
22035
  "properties": {
@@ -21164,21 +22057,13 @@
21164
22057
  "sectionId"
21165
22058
  ]
21166
22059
  },
21167
- "width": {
21168
- "type": "number"
21169
- },
21170
- "height": {
21171
- "type": "number"
21172
- },
21173
- "orientation": {
21174
- "type": "string"
21175
- },
21176
- "paperSize": {
22060
+ "value": {
21177
22061
  "type": "string"
21178
22062
  }
21179
22063
  },
21180
22064
  "required": [
21181
- "target"
22065
+ "target",
22066
+ "value"
21182
22067
  ],
21183
22068
  "additionalProperties": false
21184
22069
  }
@@ -21187,8 +22072,8 @@
21187
22072
  {
21188
22073
  "type": "function",
21189
22074
  "function": {
21190
- "name": "doc_sections_setColumns",
21191
- "description": "Set column configuration for a section.",
22075
+ "name": "doc_sections_setSectionDirection",
22076
+ "description": "Set section text flow direction (LTR/RTL).",
21192
22077
  "parameters": {
21193
22078
  "type": "object",
21194
22079
  "properties": {
@@ -21216,18 +22101,13 @@
21216
22101
  "sectionId"
21217
22102
  ]
21218
22103
  },
21219
- "count": {
21220
- "type": "number"
21221
- },
21222
- "gap": {
21223
- "type": "number"
21224
- },
21225
- "equalWidth": {
21226
- "type": "boolean"
22104
+ "direction": {
22105
+ "type": "string"
21227
22106
  }
21228
22107
  },
21229
22108
  "required": [
21230
- "target"
22109
+ "target",
22110
+ "direction"
21231
22111
  ],
21232
22112
  "additionalProperties": false
21233
22113
  }
@@ -21236,8 +22116,8 @@
21236
22116
  {
21237
22117
  "type": "function",
21238
22118
  "function": {
21239
- "name": "doc_sections_setLineNumbering",
21240
- "description": "Enable or configure line numbering for a section.",
22119
+ "name": "doc_sections_setHeaderFooterRef",
22120
+ "description": "Set or replace a section header/footer reference for a variant.",
21241
22121
  "parameters": {
21242
22122
  "type": "object",
21243
22123
  "properties": {
@@ -21265,25 +22145,21 @@
21265
22145
  "sectionId"
21266
22146
  ]
21267
22147
  },
21268
- "enabled": {
21269
- "type": "boolean"
21270
- },
21271
- "countBy": {
21272
- "type": "number"
21273
- },
21274
- "start": {
21275
- "type": "number"
22148
+ "kind": {
22149
+ "type": "string"
21276
22150
  },
21277
- "distance": {
21278
- "type": "number"
22151
+ "variant": {
22152
+ "type": "string"
21279
22153
  },
21280
- "restart": {
22154
+ "refId": {
21281
22155
  "type": "string"
21282
22156
  }
21283
22157
  },
21284
22158
  "required": [
21285
22159
  "target",
21286
- "enabled"
22160
+ "kind",
22161
+ "variant",
22162
+ "refId"
21287
22163
  ],
21288
22164
  "additionalProperties": false
21289
22165
  }
@@ -21292,8 +22168,8 @@
21292
22168
  {
21293
22169
  "type": "function",
21294
22170
  "function": {
21295
- "name": "doc_sections_setPageNumbering",
21296
- "description": "Set page numbering format/start for a section.",
22171
+ "name": "doc_sections_clearHeaderFooterRef",
22172
+ "description": "Clear a section header/footer reference for a specific variant.",
21297
22173
  "parameters": {
21298
22174
  "type": "object",
21299
22175
  "properties": {
@@ -21321,15 +22197,17 @@
21321
22197
  "sectionId"
21322
22198
  ]
21323
22199
  },
21324
- "start": {
21325
- "type": "number"
22200
+ "kind": {
22201
+ "type": "string"
21326
22202
  },
21327
- "format": {
22203
+ "variant": {
21328
22204
  "type": "string"
21329
22205
  }
21330
22206
  },
21331
22207
  "required": [
21332
- "target"
22208
+ "target",
22209
+ "kind",
22210
+ "variant"
21333
22211
  ],
21334
22212
  "additionalProperties": false
21335
22213
  }
@@ -21338,8 +22216,8 @@
21338
22216
  {
21339
22217
  "type": "function",
21340
22218
  "function": {
21341
- "name": "doc_sections_setTitlePage",
21342
- "description": "Enable or disable title-page behavior for a section.",
22219
+ "name": "doc_sections_setLinkToPrevious",
22220
+ "description": "Set or clear link-to-previous behavior for a header/footer variant.",
21343
22221
  "parameters": {
21344
22222
  "type": "object",
21345
22223
  "properties": {
@@ -21367,13 +22245,21 @@
21367
22245
  "sectionId"
21368
22246
  ]
21369
22247
  },
21370
- "enabled": {
22248
+ "kind": {
22249
+ "type": "string"
22250
+ },
22251
+ "variant": {
22252
+ "type": "string"
22253
+ },
22254
+ "linked": {
21371
22255
  "type": "boolean"
21372
22256
  }
21373
22257
  },
21374
22258
  "required": [
21375
22259
  "target",
21376
- "enabled"
22260
+ "kind",
22261
+ "variant",
22262
+ "linked"
21377
22263
  ],
21378
22264
  "additionalProperties": false
21379
22265
  }
@@ -21382,8 +22268,8 @@
21382
22268
  {
21383
22269
  "type": "function",
21384
22270
  "function": {
21385
- "name": "doc_sections_setOddEvenHeadersFooters",
21386
- "description": "Enable or disable odd/even header-footer mode in document settings.",
22271
+ "name": "doc_sections_setPageBorders",
22272
+ "description": "Set page border configuration for a section.",
21387
22273
  "parameters": {
21388
22274
  "type": "object",
21389
22275
  "properties": {
@@ -21396,12 +22282,50 @@
21396
22282
  "force": {
21397
22283
  "type": "boolean"
21398
22284
  },
21399
- "enabled": {
21400
- "type": "boolean"
22285
+ "target": {
22286
+ "type": "object",
22287
+ "properties": {
22288
+ "kind": {
22289
+ "const": "section"
22290
+ },
22291
+ "sectionId": {
22292
+ "type": "string"
22293
+ }
22294
+ },
22295
+ "required": [
22296
+ "kind",
22297
+ "sectionId"
22298
+ ]
22299
+ },
22300
+ "borders": {
22301
+ "oneOf": [
22302
+ {
22303
+ "type": "json"
22304
+ },
22305
+ {
22306
+ "type": "json"
22307
+ },
22308
+ {
22309
+ "type": "json"
22310
+ },
22311
+ {
22312
+ "type": "json"
22313
+ },
22314
+ {
22315
+ "type": "json"
22316
+ },
22317
+ {
22318
+ "type": "json"
22319
+ },
22320
+ {
22321
+ "type": "json"
22322
+ }
22323
+ ]
21401
22324
  }
21402
22325
  },
21403
22326
  "required": [
21404
- "enabled"
22327
+ "target",
22328
+ "borders"
21405
22329
  ],
21406
22330
  "additionalProperties": false
21407
22331
  }
@@ -21410,8 +22334,8 @@
21410
22334
  {
21411
22335
  "type": "function",
21412
22336
  "function": {
21413
- "name": "doc_sections_setVerticalAlign",
21414
- "description": "Set vertical page alignment for a section.",
22337
+ "name": "doc_sections_clearPageBorders",
22338
+ "description": "Clear page border configuration for a section.",
21415
22339
  "parameters": {
21416
22340
  "type": "object",
21417
22341
  "properties": {
@@ -21438,14 +22362,10 @@
21438
22362
  "kind",
21439
22363
  "sectionId"
21440
22364
  ]
21441
- },
21442
- "value": {
21443
- "type": "string"
21444
22365
  }
21445
22366
  },
21446
22367
  "required": [
21447
- "target",
21448
- "value"
22368
+ "target"
21449
22369
  ],
21450
22370
  "additionalProperties": false
21451
22371
  }
@@ -21454,8 +22374,8 @@
21454
22374
  {
21455
22375
  "type": "function",
21456
22376
  "function": {
21457
- "name": "doc_sections_setSectionDirection",
21458
- "description": "Set section text flow direction (LTR/RTL).",
22377
+ "name": "doc_styles_paragraph_setStyle",
22378
+ "description": "Set the paragraph style reference (w:pStyle) on a paragraph-like block.",
21459
22379
  "parameters": {
21460
22380
  "type": "object",
21461
22381
  "properties": {
@@ -21469,27 +22389,73 @@
21469
22389
  "type": "boolean"
21470
22390
  },
21471
22391
  "target": {
21472
- "type": "object",
21473
- "properties": {
21474
- "kind": {
21475
- "const": "section"
22392
+ "oneOf": [
22393
+ {
22394
+ "type": "object",
22395
+ "properties": {
22396
+ "kind": {
22397
+ "const": "block"
22398
+ },
22399
+ "nodeType": {
22400
+ "const": "paragraph"
22401
+ },
22402
+ "nodeId": {
22403
+ "type": "string"
22404
+ }
22405
+ },
22406
+ "required": [
22407
+ "kind",
22408
+ "nodeType",
22409
+ "nodeId"
22410
+ ]
21476
22411
  },
21477
- "sectionId": {
21478
- "type": "string"
22412
+ {
22413
+ "type": "object",
22414
+ "properties": {
22415
+ "kind": {
22416
+ "const": "block"
22417
+ },
22418
+ "nodeType": {
22419
+ "const": "heading"
22420
+ },
22421
+ "nodeId": {
22422
+ "type": "string"
22423
+ }
22424
+ },
22425
+ "required": [
22426
+ "kind",
22427
+ "nodeType",
22428
+ "nodeId"
22429
+ ]
22430
+ },
22431
+ {
22432
+ "type": "object",
22433
+ "properties": {
22434
+ "kind": {
22435
+ "const": "block"
22436
+ },
22437
+ "nodeType": {
22438
+ "const": "listItem"
22439
+ },
22440
+ "nodeId": {
22441
+ "type": "string"
22442
+ }
22443
+ },
22444
+ "required": [
22445
+ "kind",
22446
+ "nodeType",
22447
+ "nodeId"
22448
+ ]
21479
22449
  }
21480
- },
21481
- "required": [
21482
- "kind",
21483
- "sectionId"
21484
22450
  ]
21485
22451
  },
21486
- "direction": {
22452
+ "styleId": {
21487
22453
  "type": "string"
21488
22454
  }
21489
22455
  },
21490
22456
  "required": [
21491
22457
  "target",
21492
- "direction"
22458
+ "styleId"
21493
22459
  ],
21494
22460
  "additionalProperties": false
21495
22461
  }
@@ -21498,8 +22464,8 @@
21498
22464
  {
21499
22465
  "type": "function",
21500
22466
  "function": {
21501
- "name": "doc_sections_setHeaderFooterRef",
21502
- "description": "Set or replace a section header/footer reference for a variant.",
22467
+ "name": "doc_styles_paragraph_clearStyle",
22468
+ "description": "Remove the paragraph style reference from a paragraph-like block.",
21503
22469
  "parameters": {
21504
22470
  "type": "object",
21505
22471
  "properties": {
@@ -21513,35 +22479,69 @@
21513
22479
  "type": "boolean"
21514
22480
  },
21515
22481
  "target": {
21516
- "type": "object",
21517
- "properties": {
21518
- "kind": {
21519
- "const": "section"
22482
+ "oneOf": [
22483
+ {
22484
+ "type": "object",
22485
+ "properties": {
22486
+ "kind": {
22487
+ "const": "block"
22488
+ },
22489
+ "nodeType": {
22490
+ "const": "paragraph"
22491
+ },
22492
+ "nodeId": {
22493
+ "type": "string"
22494
+ }
22495
+ },
22496
+ "required": [
22497
+ "kind",
22498
+ "nodeType",
22499
+ "nodeId"
22500
+ ]
21520
22501
  },
21521
- "sectionId": {
21522
- "type": "string"
22502
+ {
22503
+ "type": "object",
22504
+ "properties": {
22505
+ "kind": {
22506
+ "const": "block"
22507
+ },
22508
+ "nodeType": {
22509
+ "const": "heading"
22510
+ },
22511
+ "nodeId": {
22512
+ "type": "string"
22513
+ }
22514
+ },
22515
+ "required": [
22516
+ "kind",
22517
+ "nodeType",
22518
+ "nodeId"
22519
+ ]
22520
+ },
22521
+ {
22522
+ "type": "object",
22523
+ "properties": {
22524
+ "kind": {
22525
+ "const": "block"
22526
+ },
22527
+ "nodeType": {
22528
+ "const": "listItem"
22529
+ },
22530
+ "nodeId": {
22531
+ "type": "string"
22532
+ }
22533
+ },
22534
+ "required": [
22535
+ "kind",
22536
+ "nodeType",
22537
+ "nodeId"
22538
+ ]
21523
22539
  }
21524
- },
21525
- "required": [
21526
- "kind",
21527
- "sectionId"
21528
22540
  ]
21529
- },
21530
- "kind": {
21531
- "type": "string"
21532
- },
21533
- "variant": {
21534
- "type": "string"
21535
- },
21536
- "refId": {
21537
- "type": "string"
21538
22541
  }
21539
22542
  },
21540
22543
  "required": [
21541
- "target",
21542
- "kind",
21543
- "variant",
21544
- "refId"
22544
+ "target"
21545
22545
  ],
21546
22546
  "additionalProperties": false
21547
22547
  }
@@ -21550,8 +22550,8 @@
21550
22550
  {
21551
22551
  "type": "function",
21552
22552
  "function": {
21553
- "name": "doc_sections_clearHeaderFooterRef",
21554
- "description": "Clear a section header/footer reference for a specific variant.",
22553
+ "name": "doc_format_paragraph_resetDirectFormatting",
22554
+ "description": "Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.",
21555
22555
  "parameters": {
21556
22556
  "type": "object",
21557
22557
  "properties": {
@@ -21565,32 +22565,76 @@
21565
22565
  "type": "boolean"
21566
22566
  },
21567
22567
  "target": {
21568
- "type": "object",
21569
- "properties": {
21570
- "kind": {
21571
- "const": "section"
22568
+ "oneOf": [
22569
+ {
22570
+ "type": "object",
22571
+ "properties": {
22572
+ "kind": {
22573
+ "const": "block"
22574
+ },
22575
+ "nodeType": {
22576
+ "const": "paragraph"
22577
+ },
22578
+ "nodeId": {
22579
+ "type": "string"
22580
+ }
22581
+ },
22582
+ "required": [
22583
+ "kind",
22584
+ "nodeType",
22585
+ "nodeId"
22586
+ ]
21572
22587
  },
21573
- "sectionId": {
21574
- "type": "string"
22588
+ {
22589
+ "type": "object",
22590
+ "properties": {
22591
+ "kind": {
22592
+ "const": "block"
22593
+ },
22594
+ "nodeType": {
22595
+ "const": "heading"
22596
+ },
22597
+ "nodeId": {
22598
+ "type": "string"
22599
+ }
22600
+ },
22601
+ "required": [
22602
+ "kind",
22603
+ "nodeType",
22604
+ "nodeId"
22605
+ ]
22606
+ },
22607
+ {
22608
+ "type": "object",
22609
+ "properties": {
22610
+ "kind": {
22611
+ "const": "block"
22612
+ },
22613
+ "nodeType": {
22614
+ "const": "listItem"
22615
+ },
22616
+ "nodeId": {
22617
+ "type": "string"
22618
+ }
22619
+ },
22620
+ "required": [
22621
+ "kind",
22622
+ "nodeType",
22623
+ "nodeId"
22624
+ ]
21575
22625
  }
21576
- },
21577
- "required": [
21578
- "kind",
21579
- "sectionId"
21580
22626
  ]
21581
22627
  },
21582
- "kind": {
22628
+ "blockId": {
21583
22629
  "type": "string"
21584
22630
  },
21585
- "variant": {
21586
- "type": "string"
22631
+ "start": {
22632
+ "type": "number"
22633
+ },
22634
+ "end": {
22635
+ "type": "number"
21587
22636
  }
21588
22637
  },
21589
- "required": [
21590
- "target",
21591
- "kind",
21592
- "variant"
21593
- ],
21594
22638
  "additionalProperties": false
21595
22639
  }
21596
22640
  }
@@ -21598,8 +22642,8 @@
21598
22642
  {
21599
22643
  "type": "function",
21600
22644
  "function": {
21601
- "name": "doc_sections_setLinkToPrevious",
21602
- "description": "Set or clear link-to-previous behavior for a header/footer variant.",
22645
+ "name": "doc_format_paragraph_setAlignment",
22646
+ "description": "Set paragraph alignment (justification) on a paragraph-like block.",
21603
22647
  "parameters": {
21604
22648
  "type": "object",
21605
22649
  "properties": {
@@ -21613,36 +22657,79 @@
21613
22657
  "type": "boolean"
21614
22658
  },
21615
22659
  "target": {
21616
- "type": "object",
21617
- "properties": {
21618
- "kind": {
21619
- "const": "section"
22660
+ "oneOf": [
22661
+ {
22662
+ "type": "object",
22663
+ "properties": {
22664
+ "kind": {
22665
+ "const": "block"
22666
+ },
22667
+ "nodeType": {
22668
+ "const": "paragraph"
22669
+ },
22670
+ "nodeId": {
22671
+ "type": "string"
22672
+ }
22673
+ },
22674
+ "required": [
22675
+ "kind",
22676
+ "nodeType",
22677
+ "nodeId"
22678
+ ]
21620
22679
  },
21621
- "sectionId": {
21622
- "type": "string"
22680
+ {
22681
+ "type": "object",
22682
+ "properties": {
22683
+ "kind": {
22684
+ "const": "block"
22685
+ },
22686
+ "nodeType": {
22687
+ "const": "heading"
22688
+ },
22689
+ "nodeId": {
22690
+ "type": "string"
22691
+ }
22692
+ },
22693
+ "required": [
22694
+ "kind",
22695
+ "nodeType",
22696
+ "nodeId"
22697
+ ]
22698
+ },
22699
+ {
22700
+ "type": "object",
22701
+ "properties": {
22702
+ "kind": {
22703
+ "const": "block"
22704
+ },
22705
+ "nodeType": {
22706
+ "const": "listItem"
22707
+ },
22708
+ "nodeId": {
22709
+ "type": "string"
22710
+ }
22711
+ },
22712
+ "required": [
22713
+ "kind",
22714
+ "nodeType",
22715
+ "nodeId"
22716
+ ]
21623
22717
  }
21624
- },
21625
- "required": [
21626
- "kind",
21627
- "sectionId"
21628
22718
  ]
21629
22719
  },
21630
- "kind": {
22720
+ "alignment": {
21631
22721
  "type": "string"
21632
22722
  },
21633
- "variant": {
22723
+ "blockId": {
21634
22724
  "type": "string"
21635
22725
  },
21636
- "linked": {
21637
- "type": "boolean"
21638
- }
21639
- },
21640
- "required": [
21641
- "target",
21642
- "kind",
21643
- "variant",
21644
- "linked"
21645
- ],
22726
+ "start": {
22727
+ "type": "number"
22728
+ },
22729
+ "end": {
22730
+ "type": "number"
22731
+ }
22732
+ },
21646
22733
  "additionalProperties": false
21647
22734
  }
21648
22735
  }
@@ -21650,8 +22737,8 @@
21650
22737
  {
21651
22738
  "type": "function",
21652
22739
  "function": {
21653
- "name": "doc_sections_setPageBorders",
21654
- "description": "Set page border configuration for a section.",
22740
+ "name": "doc_format_paragraph_clearAlignment",
22741
+ "description": "Remove direct paragraph alignment, reverting to style-defined or default alignment.",
21655
22742
  "parameters": {
21656
22743
  "type": "object",
21657
22744
  "properties": {
@@ -21665,90 +22752,76 @@
21665
22752
  "type": "boolean"
21666
22753
  },
21667
22754
  "target": {
21668
- "type": "object",
21669
- "properties": {
21670
- "kind": {
21671
- "const": "section"
21672
- },
21673
- "sectionId": {
21674
- "type": "string"
21675
- }
21676
- },
21677
- "required": [
21678
- "kind",
21679
- "sectionId"
21680
- ]
21681
- },
21682
- "borders": {
21683
22755
  "oneOf": [
21684
22756
  {
21685
- "type": "json"
21686
- },
21687
- {
21688
- "type": "json"
21689
- },
21690
- {
21691
- "type": "json"
21692
- },
21693
- {
21694
- "type": "json"
21695
- },
21696
- {
21697
- "type": "json"
22757
+ "type": "object",
22758
+ "properties": {
22759
+ "kind": {
22760
+ "const": "block"
22761
+ },
22762
+ "nodeType": {
22763
+ "const": "paragraph"
22764
+ },
22765
+ "nodeId": {
22766
+ "type": "string"
22767
+ }
22768
+ },
22769
+ "required": [
22770
+ "kind",
22771
+ "nodeType",
22772
+ "nodeId"
22773
+ ]
21698
22774
  },
21699
22775
  {
21700
- "type": "json"
22776
+ "type": "object",
22777
+ "properties": {
22778
+ "kind": {
22779
+ "const": "block"
22780
+ },
22781
+ "nodeType": {
22782
+ "const": "heading"
22783
+ },
22784
+ "nodeId": {
22785
+ "type": "string"
22786
+ }
22787
+ },
22788
+ "required": [
22789
+ "kind",
22790
+ "nodeType",
22791
+ "nodeId"
22792
+ ]
21701
22793
  },
21702
22794
  {
21703
- "type": "json"
22795
+ "type": "object",
22796
+ "properties": {
22797
+ "kind": {
22798
+ "const": "block"
22799
+ },
22800
+ "nodeType": {
22801
+ "const": "listItem"
22802
+ },
22803
+ "nodeId": {
22804
+ "type": "string"
22805
+ }
22806
+ },
22807
+ "required": [
22808
+ "kind",
22809
+ "nodeType",
22810
+ "nodeId"
22811
+ ]
21704
22812
  }
21705
22813
  ]
21706
- }
21707
- },
21708
- "required": [
21709
- "target",
21710
- "borders"
21711
- ],
21712
- "additionalProperties": false
21713
- }
21714
- }
21715
- },
21716
- {
21717
- "type": "function",
21718
- "function": {
21719
- "name": "doc_sections_clearPageBorders",
21720
- "description": "Clear page border configuration for a section.",
21721
- "parameters": {
21722
- "type": "object",
21723
- "properties": {
21724
- "doc": {
21725
- "type": "string"
21726
22814
  },
21727
- "sessionId": {
22815
+ "blockId": {
21728
22816
  "type": "string"
21729
22817
  },
21730
- "force": {
21731
- "type": "boolean"
22818
+ "start": {
22819
+ "type": "number"
21732
22820
  },
21733
- "target": {
21734
- "type": "object",
21735
- "properties": {
21736
- "kind": {
21737
- "const": "section"
21738
- },
21739
- "sectionId": {
21740
- "type": "string"
21741
- }
21742
- },
21743
- "required": [
21744
- "kind",
21745
- "sectionId"
21746
- ]
22821
+ "end": {
22822
+ "type": "number"
21747
22823
  }
21748
22824
  },
21749
- "required": [
21750
- "target"
21751
- ],
21752
22825
  "additionalProperties": false
21753
22826
  }
21754
22827
  }
@@ -21756,8 +22829,8 @@
21756
22829
  {
21757
22830
  "type": "function",
21758
22831
  "function": {
21759
- "name": "doc_styles_paragraph_setStyle",
21760
- "description": "Set the paragraph style reference (w:pStyle) on a paragraph-like block.",
22832
+ "name": "doc_format_paragraph_setIndentation",
22833
+ "description": "Set paragraph indentation properties (left, right, firstLine, hanging) in twips.",
21761
22834
  "parameters": {
21762
22835
  "type": "object",
21763
22836
  "properties": {
@@ -21831,14 +22904,28 @@
21831
22904
  }
21832
22905
  ]
21833
22906
  },
21834
- "styleId": {
22907
+ "left": {
22908
+ "type": "number"
22909
+ },
22910
+ "right": {
22911
+ "type": "number"
22912
+ },
22913
+ "firstLine": {
22914
+ "type": "number"
22915
+ },
22916
+ "hanging": {
22917
+ "type": "number"
22918
+ },
22919
+ "blockId": {
21835
22920
  "type": "string"
22921
+ },
22922
+ "start": {
22923
+ "type": "number"
22924
+ },
22925
+ "end": {
22926
+ "type": "number"
21836
22927
  }
21837
22928
  },
21838
- "required": [
21839
- "target",
21840
- "styleId"
21841
- ],
21842
22929
  "additionalProperties": false
21843
22930
  }
21844
22931
  }
@@ -21846,8 +22933,8 @@
21846
22933
  {
21847
22934
  "type": "function",
21848
22935
  "function": {
21849
- "name": "doc_styles_paragraph_clearStyle",
21850
- "description": "Remove the paragraph style reference from a paragraph-like block.",
22936
+ "name": "doc_format_paragraph_clearIndentation",
22937
+ "description": "Remove all direct paragraph indentation.",
21851
22938
  "parameters": {
21852
22939
  "type": "object",
21853
22940
  "properties": {
@@ -21920,11 +23007,17 @@
21920
23007
  ]
21921
23008
  }
21922
23009
  ]
23010
+ },
23011
+ "blockId": {
23012
+ "type": "string"
23013
+ },
23014
+ "start": {
23015
+ "type": "number"
23016
+ },
23017
+ "end": {
23018
+ "type": "number"
21923
23019
  }
21924
23020
  },
21925
- "required": [
21926
- "target"
21927
- ],
21928
23021
  "additionalProperties": false
21929
23022
  }
21930
23023
  }
@@ -21932,8 +23025,8 @@
21932
23025
  {
21933
23026
  "type": "function",
21934
23027
  "function": {
21935
- "name": "doc_format_paragraph_resetDirectFormatting",
21936
- "description": "Strip all direct paragraph formatting while preserving style reference, numbering, and section metadata.",
23028
+ "name": "doc_format_paragraph_setSpacing",
23029
+ "description": "Set paragraph spacing properties (before, after, line, lineRule) in twips.",
21937
23030
  "parameters": {
21938
23031
  "type": "object",
21939
23032
  "properties": {
@@ -22007,6 +23100,18 @@
22007
23100
  }
22008
23101
  ]
22009
23102
  },
23103
+ "before": {
23104
+ "type": "number"
23105
+ },
23106
+ "after": {
23107
+ "type": "number"
23108
+ },
23109
+ "line": {
23110
+ "type": "number"
23111
+ },
23112
+ "lineRule": {
23113
+ "type": "string"
23114
+ },
22010
23115
  "blockId": {
22011
23116
  "type": "string"
22012
23117
  },
@@ -22024,8 +23129,8 @@
22024
23129
  {
22025
23130
  "type": "function",
22026
23131
  "function": {
22027
- "name": "doc_format_paragraph_setAlignment",
22028
- "description": "Set paragraph alignment (justification) on a paragraph-like block.",
23132
+ "name": "doc_format_paragraph_clearSpacing",
23133
+ "description": "Remove all direct paragraph spacing.",
22029
23134
  "parameters": {
22030
23135
  "type": "object",
22031
23136
  "properties": {
@@ -22099,9 +23204,6 @@
22099
23204
  }
22100
23205
  ]
22101
23206
  },
22102
- "alignment": {
22103
- "type": "string"
22104
- },
22105
23207
  "blockId": {
22106
23208
  "type": "string"
22107
23209
  },
@@ -22119,8 +23221,8 @@
22119
23221
  {
22120
23222
  "type": "function",
22121
23223
  "function": {
22122
- "name": "doc_format_paragraph_clearAlignment",
22123
- "description": "Remove direct paragraph alignment, reverting to style-defined or default alignment.",
23224
+ "name": "doc_format_paragraph_setKeepOptions",
23225
+ "description": "Set keep-with-next, keep-lines-together, and widow/orphan control flags.",
22124
23226
  "parameters": {
22125
23227
  "type": "object",
22126
23228
  "properties": {
@@ -22194,6 +23296,15 @@
22194
23296
  }
22195
23297
  ]
22196
23298
  },
23299
+ "keepNext": {
23300
+ "type": "boolean"
23301
+ },
23302
+ "keepLines": {
23303
+ "type": "boolean"
23304
+ },
23305
+ "widowControl": {
23306
+ "type": "boolean"
23307
+ },
22197
23308
  "blockId": {
22198
23309
  "type": "string"
22199
23310
  },
@@ -22211,8 +23322,8 @@
22211
23322
  {
22212
23323
  "type": "function",
22213
23324
  "function": {
22214
- "name": "doc_format_paragraph_setIndentation",
22215
- "description": "Set paragraph indentation properties (left, right, firstLine, hanging) in twips.",
23325
+ "name": "doc_format_paragraph_setOutlineLevel",
23326
+ "description": "Set the paragraph outline level (0–9) or null to clear.",
22216
23327
  "parameters": {
22217
23328
  "type": "object",
22218
23329
  "properties": {
@@ -22286,17 +23397,15 @@
22286
23397
  }
22287
23398
  ]
22288
23399
  },
22289
- "left": {
22290
- "type": "number"
22291
- },
22292
- "right": {
22293
- "type": "number"
22294
- },
22295
- "firstLine": {
22296
- "type": "number"
22297
- },
22298
- "hanging": {
22299
- "type": "number"
23400
+ "outlineLevel": {
23401
+ "oneOf": [
23402
+ {
23403
+ "type": "number"
23404
+ },
23405
+ {
23406
+ "type": "json"
23407
+ }
23408
+ ]
22300
23409
  },
22301
23410
  "blockId": {
22302
23411
  "type": "string"
@@ -22315,8 +23424,8 @@
22315
23424
  {
22316
23425
  "type": "function",
22317
23426
  "function": {
22318
- "name": "doc_format_paragraph_clearIndentation",
22319
- "description": "Remove all direct paragraph indentation.",
23427
+ "name": "doc_format_paragraph_setFlowOptions",
23428
+ "description": "Set contextual spacing, page-break-before, and suppress-auto-hyphens flags.",
22320
23429
  "parameters": {
22321
23430
  "type": "object",
22322
23431
  "properties": {
@@ -22390,6 +23499,15 @@
22390
23499
  }
22391
23500
  ]
22392
23501
  },
23502
+ "contextualSpacing": {
23503
+ "type": "boolean"
23504
+ },
23505
+ "pageBreakBefore": {
23506
+ "type": "boolean"
23507
+ },
23508
+ "suppressAutoHyphens": {
23509
+ "type": "boolean"
23510
+ },
22393
23511
  "blockId": {
22394
23512
  "type": "string"
22395
23513
  },
@@ -22407,8 +23525,8 @@
22407
23525
  {
22408
23526
  "type": "function",
22409
23527
  "function": {
22410
- "name": "doc_format_paragraph_setSpacing",
22411
- "description": "Set paragraph spacing properties (before, after, line, lineRule) in twips.",
23528
+ "name": "doc_format_paragraph_setTabStop",
23529
+ "description": "Add or replace a tab stop at a given position.",
22412
23530
  "parameters": {
22413
23531
  "type": "object",
22414
23532
  "properties": {
@@ -22482,16 +23600,13 @@
22482
23600
  }
22483
23601
  ]
22484
23602
  },
22485
- "before": {
22486
- "type": "number"
22487
- },
22488
- "after": {
23603
+ "position": {
22489
23604
  "type": "number"
22490
23605
  },
22491
- "line": {
22492
- "type": "number"
23606
+ "alignment": {
23607
+ "type": "string"
22493
23608
  },
22494
- "lineRule": {
23609
+ "leader": {
22495
23610
  "type": "string"
22496
23611
  },
22497
23612
  "blockId": {
@@ -22511,8 +23626,8 @@
22511
23626
  {
22512
23627
  "type": "function",
22513
23628
  "function": {
22514
- "name": "doc_format_paragraph_clearSpacing",
22515
- "description": "Remove all direct paragraph spacing.",
23629
+ "name": "doc_format_paragraph_clearTabStop",
23630
+ "description": "Remove a tab stop at a given position.",
22516
23631
  "parameters": {
22517
23632
  "type": "object",
22518
23633
  "properties": {
@@ -22586,6 +23701,9 @@
22586
23701
  }
22587
23702
  ]
22588
23703
  },
23704
+ "position": {
23705
+ "type": "number"
23706
+ },
22589
23707
  "blockId": {
22590
23708
  "type": "string"
22591
23709
  },
@@ -22603,8 +23721,8 @@
22603
23721
  {
22604
23722
  "type": "function",
22605
23723
  "function": {
22606
- "name": "doc_format_paragraph_setKeepOptions",
22607
- "description": "Set keep-with-next, keep-lines-together, and widow/orphan control flags.",
23724
+ "name": "doc_format_paragraph_clearAllTabStops",
23725
+ "description": "Remove all tab stops from a paragraph.",
22608
23726
  "parameters": {
22609
23727
  "type": "object",
22610
23728
  "properties": {
@@ -22678,15 +23796,6 @@
22678
23796
  }
22679
23797
  ]
22680
23798
  },
22681
- "keepNext": {
22682
- "type": "boolean"
22683
- },
22684
- "keepLines": {
22685
- "type": "boolean"
22686
- },
22687
- "widowControl": {
22688
- "type": "boolean"
22689
- },
22690
23799
  "blockId": {
22691
23800
  "type": "string"
22692
23801
  },
@@ -22704,8 +23813,8 @@
22704
23813
  {
22705
23814
  "type": "function",
22706
23815
  "function": {
22707
- "name": "doc_format_paragraph_setOutlineLevel",
22708
- "description": "Set the paragraph outline level (0–9) or null to clear.",
23816
+ "name": "doc_format_paragraph_setBorder",
23817
+ "description": "Set border properties for a specific side of a paragraph.",
22709
23818
  "parameters": {
22710
23819
  "type": "object",
22711
23820
  "properties": {
@@ -22779,15 +23888,20 @@
22779
23888
  }
22780
23889
  ]
22781
23890
  },
22782
- "outlineLevel": {
22783
- "oneOf": [
22784
- {
22785
- "type": "number"
22786
- },
22787
- {
22788
- "type": "json"
22789
- }
22790
- ]
23891
+ "side": {
23892
+ "type": "string"
23893
+ },
23894
+ "style": {
23895
+ "type": "string"
23896
+ },
23897
+ "color": {
23898
+ "type": "string"
23899
+ },
23900
+ "size": {
23901
+ "type": "number"
23902
+ },
23903
+ "space": {
23904
+ "type": "number"
22791
23905
  },
22792
23906
  "blockId": {
22793
23907
  "type": "string"
@@ -22806,8 +23920,8 @@
22806
23920
  {
22807
23921
  "type": "function",
22808
23922
  "function": {
22809
- "name": "doc_format_paragraph_setFlowOptions",
22810
- "description": "Set contextual spacing, page-break-before, and suppress-auto-hyphens flags.",
23923
+ "name": "doc_format_paragraph_clearBorder",
23924
+ "description": "Remove border for a specific side or all sides of a paragraph.",
22811
23925
  "parameters": {
22812
23926
  "type": "object",
22813
23927
  "properties": {
@@ -22881,14 +23995,8 @@
22881
23995
  }
22882
23996
  ]
22883
23997
  },
22884
- "contextualSpacing": {
22885
- "type": "boolean"
22886
- },
22887
- "pageBreakBefore": {
22888
- "type": "boolean"
22889
- },
22890
- "suppressAutoHyphens": {
22891
- "type": "boolean"
23998
+ "side": {
23999
+ "type": "string"
22892
24000
  },
22893
24001
  "blockId": {
22894
24002
  "type": "string"
@@ -22907,8 +24015,8 @@
22907
24015
  {
22908
24016
  "type": "function",
22909
24017
  "function": {
22910
- "name": "doc_format_paragraph_setTabStop",
22911
- "description": "Add or replace a tab stop at a given position.",
24018
+ "name": "doc_format_paragraph_setShading",
24019
+ "description": "Set paragraph shading (background fill, pattern color, pattern type).",
22912
24020
  "parameters": {
22913
24021
  "type": "object",
22914
24022
  "properties": {
@@ -22982,13 +24090,13 @@
22982
24090
  }
22983
24091
  ]
22984
24092
  },
22985
- "position": {
22986
- "type": "number"
24093
+ "fill": {
24094
+ "type": "string"
22987
24095
  },
22988
- "alignment": {
24096
+ "color": {
22989
24097
  "type": "string"
22990
24098
  },
22991
- "leader": {
24099
+ "pattern": {
22992
24100
  "type": "string"
22993
24101
  },
22994
24102
  "blockId": {
@@ -23008,8 +24116,8 @@
23008
24116
  {
23009
24117
  "type": "function",
23010
24118
  "function": {
23011
- "name": "doc_format_paragraph_clearTabStop",
23012
- "description": "Remove a tab stop at a given position.",
24119
+ "name": "doc_format_paragraph_clearShading",
24120
+ "description": "Remove all paragraph shading.",
23013
24121
  "parameters": {
23014
24122
  "type": "object",
23015
24123
  "properties": {
@@ -23083,17 +24191,188 @@
23083
24191
  }
23084
24192
  ]
23085
24193
  },
24194
+ "blockId": {
24195
+ "type": "string"
24196
+ },
24197
+ "start": {
24198
+ "type": "number"
24199
+ },
24200
+ "end": {
24201
+ "type": "number"
24202
+ }
24203
+ },
24204
+ "additionalProperties": false
24205
+ }
24206
+ }
24207
+ },
24208
+ {
24209
+ "type": "function",
24210
+ "function": {
24211
+ "name": "doc_lists_list",
24212
+ "description": "List all list nodes in the document, optionally filtered by scope.",
24213
+ "parameters": {
24214
+ "type": "object",
24215
+ "properties": {
24216
+ "doc": {
24217
+ "type": "string"
24218
+ },
24219
+ "sessionId": {
24220
+ "type": "string"
24221
+ },
24222
+ "within": {
24223
+ "type": "object",
24224
+ "properties": {
24225
+ "kind": {
24226
+ "const": "block"
24227
+ },
24228
+ "nodeType": {
24229
+ "oneOf": [
24230
+ {
24231
+ "const": "paragraph"
24232
+ },
24233
+ {
24234
+ "const": "heading"
24235
+ },
24236
+ {
24237
+ "const": "listItem"
24238
+ },
24239
+ {
24240
+ "const": "table"
24241
+ },
24242
+ {
24243
+ "const": "tableRow"
24244
+ },
24245
+ {
24246
+ "const": "tableCell"
24247
+ },
24248
+ {
24249
+ "const": "tableOfContents"
24250
+ },
24251
+ {
24252
+ "const": "image"
24253
+ },
24254
+ {
24255
+ "const": "sdt"
24256
+ }
24257
+ ]
24258
+ },
24259
+ "nodeId": {
24260
+ "type": "string"
24261
+ }
24262
+ },
24263
+ "required": [
24264
+ "kind",
24265
+ "nodeType",
24266
+ "nodeId"
24267
+ ]
24268
+ },
24269
+ "limit": {
24270
+ "type": "number"
24271
+ },
24272
+ "offset": {
24273
+ "type": "number"
24274
+ },
24275
+ "kind": {
24276
+ "type": "string"
24277
+ },
24278
+ "level": {
24279
+ "type": "number"
24280
+ },
24281
+ "ordinal": {
24282
+ "type": "number"
24283
+ },
24284
+ "query": {}
24285
+ },
24286
+ "additionalProperties": false
24287
+ }
24288
+ }
24289
+ },
24290
+ {
24291
+ "type": "function",
24292
+ "function": {
24293
+ "name": "doc_lists_get",
24294
+ "description": "Retrieve a specific list node by target.",
24295
+ "parameters": {
24296
+ "type": "object",
24297
+ "properties": {
24298
+ "doc": {
24299
+ "type": "string"
24300
+ },
24301
+ "sessionId": {
24302
+ "type": "string"
24303
+ },
24304
+ "address": {
24305
+ "type": "object",
24306
+ "properties": {
24307
+ "kind": {
24308
+ "const": "block"
24309
+ },
24310
+ "nodeType": {
24311
+ "const": "listItem"
24312
+ },
24313
+ "nodeId": {
24314
+ "type": "string"
24315
+ }
24316
+ },
24317
+ "required": [
24318
+ "kind",
24319
+ "nodeType",
24320
+ "nodeId"
24321
+ ]
24322
+ }
24323
+ },
24324
+ "required": [
24325
+ "address"
24326
+ ],
24327
+ "additionalProperties": false
24328
+ }
24329
+ }
24330
+ },
24331
+ {
24332
+ "type": "function",
24333
+ "function": {
24334
+ "name": "doc_lists_insert",
24335
+ "description": "Insert a new list at the target position.",
24336
+ "parameters": {
24337
+ "type": "object",
24338
+ "properties": {
24339
+ "doc": {
24340
+ "type": "string"
24341
+ },
24342
+ "sessionId": {
24343
+ "type": "string"
24344
+ },
24345
+ "force": {
24346
+ "type": "boolean"
24347
+ },
24348
+ "target": {
24349
+ "type": "object",
24350
+ "properties": {
24351
+ "kind": {
24352
+ "const": "block"
24353
+ },
24354
+ "nodeType": {
24355
+ "const": "listItem"
24356
+ },
24357
+ "nodeId": {
24358
+ "type": "string"
24359
+ }
24360
+ },
24361
+ "required": [
24362
+ "kind",
24363
+ "nodeType",
24364
+ "nodeId"
24365
+ ]
24366
+ },
23086
24367
  "position": {
23087
- "type": "number"
23088
- },
23089
- "blockId": {
23090
24368
  "type": "string"
23091
24369
  },
23092
- "start": {
23093
- "type": "number"
24370
+ "text": {
24371
+ "type": "string"
23094
24372
  },
23095
- "end": {
23096
- "type": "number"
24373
+ "input": {},
24374
+ "nodeId": {
24375
+ "type": "string"
23097
24376
  }
23098
24377
  },
23099
24378
  "additionalProperties": false
@@ -23103,8 +24382,8 @@
23103
24382
  {
23104
24383
  "type": "function",
23105
24384
  "function": {
23106
- "name": "doc_format_paragraph_clearAllTabStops",
23107
- "description": "Remove all tab stops from a paragraph.",
24385
+ "name": "doc_lists_create",
24386
+ "description": "Create a new list from one or more paragraphs, or convert existing paragraphs into a new list.",
23108
24387
  "parameters": {
23109
24388
  "type": "object",
23110
24389
  "properties": {
@@ -23117,6 +24396,28 @@
23117
24396
  "force": {
23118
24397
  "type": "boolean"
23119
24398
  },
24399
+ "mode": {
24400
+ "type": "string"
24401
+ },
24402
+ "at": {
24403
+ "type": "object",
24404
+ "properties": {
24405
+ "kind": {
24406
+ "const": "block"
24407
+ },
24408
+ "nodeType": {
24409
+ "const": "paragraph"
24410
+ },
24411
+ "nodeId": {
24412
+ "type": "string"
24413
+ }
24414
+ },
24415
+ "required": [
24416
+ "kind",
24417
+ "nodeType",
24418
+ "nodeId"
24419
+ ]
24420
+ },
23120
24421
  "target": {
23121
24422
  "oneOf": [
23122
24423
  {
@@ -23141,52 +24442,59 @@
23141
24442
  {
23142
24443
  "type": "object",
23143
24444
  "properties": {
23144
- "kind": {
23145
- "const": "block"
23146
- },
23147
- "nodeType": {
23148
- "const": "heading"
23149
- },
23150
- "nodeId": {
23151
- "type": "string"
23152
- }
23153
- },
23154
- "required": [
23155
- "kind",
23156
- "nodeType",
23157
- "nodeId"
23158
- ]
23159
- },
23160
- {
23161
- "type": "object",
23162
- "properties": {
23163
- "kind": {
23164
- "const": "block"
23165
- },
23166
- "nodeType": {
23167
- "const": "listItem"
24445
+ "from": {
24446
+ "type": "object",
24447
+ "properties": {
24448
+ "kind": {
24449
+ "const": "block"
24450
+ },
24451
+ "nodeType": {
24452
+ "const": "paragraph"
24453
+ },
24454
+ "nodeId": {
24455
+ "type": "string"
24456
+ }
24457
+ },
24458
+ "required": [
24459
+ "kind",
24460
+ "nodeType",
24461
+ "nodeId"
24462
+ ]
23168
24463
  },
23169
- "nodeId": {
23170
- "type": "string"
24464
+ "to": {
24465
+ "type": "object",
24466
+ "properties": {
24467
+ "kind": {
24468
+ "const": "block"
24469
+ },
24470
+ "nodeType": {
24471
+ "const": "paragraph"
24472
+ },
24473
+ "nodeId": {
24474
+ "type": "string"
24475
+ }
24476
+ },
24477
+ "required": [
24478
+ "kind",
24479
+ "nodeType",
24480
+ "nodeId"
24481
+ ]
23171
24482
  }
23172
24483
  },
23173
24484
  "required": [
23174
- "kind",
23175
- "nodeType",
23176
- "nodeId"
24485
+ "from",
24486
+ "to"
23177
24487
  ]
23178
24488
  }
23179
24489
  ]
23180
24490
  },
23181
- "blockId": {
24491
+ "kind": {
23182
24492
  "type": "string"
23183
24493
  },
23184
- "start": {
24494
+ "level": {
23185
24495
  "type": "number"
23186
24496
  },
23187
- "end": {
23188
- "type": "number"
23189
- }
24497
+ "input": {}
23190
24498
  },
23191
24499
  "additionalProperties": false
23192
24500
  }
@@ -23195,8 +24503,8 @@
23195
24503
  {
23196
24504
  "type": "function",
23197
24505
  "function": {
23198
- "name": "doc_format_paragraph_setBorder",
23199
- "description": "Set border properties for a specific side of a paragraph.",
24506
+ "name": "doc_lists_attach",
24507
+ "description": "Convert non-list paragraphs to list items under an existing list sequence.",
23200
24508
  "parameters": {
23201
24509
  "type": "object",
23202
24510
  "properties": {
@@ -23233,66 +24541,119 @@
23233
24541
  {
23234
24542
  "type": "object",
23235
24543
  "properties": {
23236
- "kind": {
23237
- "const": "block"
23238
- },
23239
- "nodeType": {
23240
- "const": "heading"
24544
+ "from": {
24545
+ "type": "object",
24546
+ "properties": {
24547
+ "kind": {
24548
+ "const": "block"
24549
+ },
24550
+ "nodeType": {
24551
+ "const": "paragraph"
24552
+ },
24553
+ "nodeId": {
24554
+ "type": "string"
24555
+ }
24556
+ },
24557
+ "required": [
24558
+ "kind",
24559
+ "nodeType",
24560
+ "nodeId"
24561
+ ]
23241
24562
  },
23242
- "nodeId": {
23243
- "type": "string"
24563
+ "to": {
24564
+ "type": "object",
24565
+ "properties": {
24566
+ "kind": {
24567
+ "const": "block"
24568
+ },
24569
+ "nodeType": {
24570
+ "const": "paragraph"
24571
+ },
24572
+ "nodeId": {
24573
+ "type": "string"
24574
+ }
24575
+ },
24576
+ "required": [
24577
+ "kind",
24578
+ "nodeType",
24579
+ "nodeId"
24580
+ ]
23244
24581
  }
23245
24582
  },
23246
24583
  "required": [
23247
- "kind",
23248
- "nodeType",
23249
- "nodeId"
24584
+ "from",
24585
+ "to"
23250
24586
  ]
24587
+ }
24588
+ ]
24589
+ },
24590
+ "attachTo": {
24591
+ "type": "object",
24592
+ "properties": {
24593
+ "kind": {
24594
+ "const": "block"
23251
24595
  },
23252
- {
23253
- "type": "object",
23254
- "properties": {
23255
- "kind": {
23256
- "const": "block"
23257
- },
23258
- "nodeType": {
23259
- "const": "listItem"
23260
- },
23261
- "nodeId": {
23262
- "type": "string"
23263
- }
23264
- },
23265
- "required": [
23266
- "kind",
23267
- "nodeType",
23268
- "nodeId"
23269
- ]
24596
+ "nodeType": {
24597
+ "const": "listItem"
24598
+ },
24599
+ "nodeId": {
24600
+ "type": "string"
23270
24601
  }
24602
+ },
24603
+ "required": [
24604
+ "kind",
24605
+ "nodeType",
24606
+ "nodeId"
23271
24607
  ]
23272
24608
  },
23273
- "side": {
23274
- "type": "string"
24609
+ "level": {
24610
+ "type": "number"
23275
24611
  },
23276
- "style": {
24612
+ "input": {}
24613
+ },
24614
+ "additionalProperties": false
24615
+ }
24616
+ }
24617
+ },
24618
+ {
24619
+ "type": "function",
24620
+ "function": {
24621
+ "name": "doc_lists_detach",
24622
+ "description": "Remove numbering properties from list items, converting them to plain paragraphs.",
24623
+ "parameters": {
24624
+ "type": "object",
24625
+ "properties": {
24626
+ "doc": {
23277
24627
  "type": "string"
23278
24628
  },
23279
- "color": {
24629
+ "sessionId": {
23280
24630
  "type": "string"
23281
24631
  },
23282
- "size": {
23283
- "type": "number"
23284
- },
23285
- "space": {
23286
- "type": "number"
23287
- },
23288
- "blockId": {
23289
- "type": "string"
24632
+ "force": {
24633
+ "type": "boolean"
23290
24634
  },
23291
- "start": {
23292
- "type": "number"
24635
+ "target": {
24636
+ "type": "object",
24637
+ "properties": {
24638
+ "kind": {
24639
+ "const": "block"
24640
+ },
24641
+ "nodeType": {
24642
+ "const": "listItem"
24643
+ },
24644
+ "nodeId": {
24645
+ "type": "string"
24646
+ }
24647
+ },
24648
+ "required": [
24649
+ "kind",
24650
+ "nodeType",
24651
+ "nodeId"
24652
+ ]
23293
24653
  },
23294
- "end": {
23295
- "type": "number"
24654
+ "input": {},
24655
+ "nodeId": {
24656
+ "type": "string"
23296
24657
  }
23297
24658
  },
23298
24659
  "additionalProperties": false
@@ -23302,8 +24663,8 @@
23302
24663
  {
23303
24664
  "type": "function",
23304
24665
  "function": {
23305
- "name": "doc_format_paragraph_clearBorder",
23306
- "description": "Remove border for a specific side or all sides of a paragraph.",
24666
+ "name": "doc_lists_indent",
24667
+ "description": "Increase the indentation level of a list item.",
23307
24668
  "parameters": {
23308
24669
  "type": "object",
23309
24670
  "properties": {
@@ -23317,77 +24678,27 @@
23317
24678
  "type": "boolean"
23318
24679
  },
23319
24680
  "target": {
23320
- "oneOf": [
23321
- {
23322
- "type": "object",
23323
- "properties": {
23324
- "kind": {
23325
- "const": "block"
23326
- },
23327
- "nodeType": {
23328
- "const": "paragraph"
23329
- },
23330
- "nodeId": {
23331
- "type": "string"
23332
- }
23333
- },
23334
- "required": [
23335
- "kind",
23336
- "nodeType",
23337
- "nodeId"
23338
- ]
24681
+ "type": "object",
24682
+ "properties": {
24683
+ "kind": {
24684
+ "const": "block"
23339
24685
  },
23340
- {
23341
- "type": "object",
23342
- "properties": {
23343
- "kind": {
23344
- "const": "block"
23345
- },
23346
- "nodeType": {
23347
- "const": "heading"
23348
- },
23349
- "nodeId": {
23350
- "type": "string"
23351
- }
23352
- },
23353
- "required": [
23354
- "kind",
23355
- "nodeType",
23356
- "nodeId"
23357
- ]
24686
+ "nodeType": {
24687
+ "const": "listItem"
23358
24688
  },
23359
- {
23360
- "type": "object",
23361
- "properties": {
23362
- "kind": {
23363
- "const": "block"
23364
- },
23365
- "nodeType": {
23366
- "const": "listItem"
23367
- },
23368
- "nodeId": {
23369
- "type": "string"
23370
- }
23371
- },
23372
- "required": [
23373
- "kind",
23374
- "nodeType",
23375
- "nodeId"
23376
- ]
24689
+ "nodeId": {
24690
+ "type": "string"
23377
24691
  }
24692
+ },
24693
+ "required": [
24694
+ "kind",
24695
+ "nodeType",
24696
+ "nodeId"
23378
24697
  ]
23379
24698
  },
23380
- "side": {
23381
- "type": "string"
23382
- },
23383
- "blockId": {
24699
+ "input": {},
24700
+ "nodeId": {
23384
24701
  "type": "string"
23385
- },
23386
- "start": {
23387
- "type": "number"
23388
- },
23389
- "end": {
23390
- "type": "number"
23391
24702
  }
23392
24703
  },
23393
24704
  "additionalProperties": false
@@ -23397,8 +24708,8 @@
23397
24708
  {
23398
24709
  "type": "function",
23399
24710
  "function": {
23400
- "name": "doc_format_paragraph_setShading",
23401
- "description": "Set paragraph shading (background fill, pattern color, pattern type).",
24711
+ "name": "doc_lists_outdent",
24712
+ "description": "Decrease the indentation level of a list item.",
23402
24713
  "parameters": {
23403
24714
  "type": "object",
23404
24715
  "properties": {
@@ -23412,83 +24723,27 @@
23412
24723
  "type": "boolean"
23413
24724
  },
23414
24725
  "target": {
23415
- "oneOf": [
23416
- {
23417
- "type": "object",
23418
- "properties": {
23419
- "kind": {
23420
- "const": "block"
23421
- },
23422
- "nodeType": {
23423
- "const": "paragraph"
23424
- },
23425
- "nodeId": {
23426
- "type": "string"
23427
- }
23428
- },
23429
- "required": [
23430
- "kind",
23431
- "nodeType",
23432
- "nodeId"
23433
- ]
24726
+ "type": "object",
24727
+ "properties": {
24728
+ "kind": {
24729
+ "const": "block"
23434
24730
  },
23435
- {
23436
- "type": "object",
23437
- "properties": {
23438
- "kind": {
23439
- "const": "block"
23440
- },
23441
- "nodeType": {
23442
- "const": "heading"
23443
- },
23444
- "nodeId": {
23445
- "type": "string"
23446
- }
23447
- },
23448
- "required": [
23449
- "kind",
23450
- "nodeType",
23451
- "nodeId"
23452
- ]
24731
+ "nodeType": {
24732
+ "const": "listItem"
23453
24733
  },
23454
- {
23455
- "type": "object",
23456
- "properties": {
23457
- "kind": {
23458
- "const": "block"
23459
- },
23460
- "nodeType": {
23461
- "const": "listItem"
23462
- },
23463
- "nodeId": {
23464
- "type": "string"
23465
- }
23466
- },
23467
- "required": [
23468
- "kind",
23469
- "nodeType",
23470
- "nodeId"
23471
- ]
24734
+ "nodeId": {
24735
+ "type": "string"
23472
24736
  }
24737
+ },
24738
+ "required": [
24739
+ "kind",
24740
+ "nodeType",
24741
+ "nodeId"
23473
24742
  ]
23474
24743
  },
23475
- "fill": {
23476
- "type": "string"
23477
- },
23478
- "color": {
23479
- "type": "string"
23480
- },
23481
- "pattern": {
23482
- "type": "string"
23483
- },
23484
- "blockId": {
24744
+ "input": {},
24745
+ "nodeId": {
23485
24746
  "type": "string"
23486
- },
23487
- "start": {
23488
- "type": "number"
23489
- },
23490
- "end": {
23491
- "type": "number"
23492
24747
  }
23493
24748
  },
23494
24749
  "additionalProperties": false
@@ -23498,8 +24753,8 @@
23498
24753
  {
23499
24754
  "type": "function",
23500
24755
  "function": {
23501
- "name": "doc_format_paragraph_clearShading",
23502
- "description": "Remove all paragraph shading.",
24756
+ "name": "doc_lists_join",
24757
+ "description": "Merge two adjacent list sequences into one.",
23503
24758
  "parameters": {
23504
24759
  "type": "object",
23505
24760
  "properties": {
@@ -23513,75 +24768,28 @@
23513
24768
  "type": "boolean"
23514
24769
  },
23515
24770
  "target": {
23516
- "oneOf": [
23517
- {
23518
- "type": "object",
23519
- "properties": {
23520
- "kind": {
23521
- "const": "block"
23522
- },
23523
- "nodeType": {
23524
- "const": "paragraph"
23525
- },
23526
- "nodeId": {
23527
- "type": "string"
23528
- }
23529
- },
23530
- "required": [
23531
- "kind",
23532
- "nodeType",
23533
- "nodeId"
23534
- ]
24771
+ "type": "object",
24772
+ "properties": {
24773
+ "kind": {
24774
+ "const": "block"
23535
24775
  },
23536
- {
23537
- "type": "object",
23538
- "properties": {
23539
- "kind": {
23540
- "const": "block"
23541
- },
23542
- "nodeType": {
23543
- "const": "heading"
23544
- },
23545
- "nodeId": {
23546
- "type": "string"
23547
- }
23548
- },
23549
- "required": [
23550
- "kind",
23551
- "nodeType",
23552
- "nodeId"
23553
- ]
24776
+ "nodeType": {
24777
+ "const": "listItem"
23554
24778
  },
23555
- {
23556
- "type": "object",
23557
- "properties": {
23558
- "kind": {
23559
- "const": "block"
23560
- },
23561
- "nodeType": {
23562
- "const": "listItem"
23563
- },
23564
- "nodeId": {
23565
- "type": "string"
23566
- }
23567
- },
23568
- "required": [
23569
- "kind",
23570
- "nodeType",
23571
- "nodeId"
23572
- ]
24779
+ "nodeId": {
24780
+ "type": "string"
23573
24781
  }
24782
+ },
24783
+ "required": [
24784
+ "kind",
24785
+ "nodeType",
24786
+ "nodeId"
23574
24787
  ]
23575
24788
  },
23576
- "blockId": {
23577
- "type": "string"
23578
- },
23579
- "start": {
23580
- "type": "number"
24789
+ "direction": {
24790
+ "type": "string"
23581
24791
  },
23582
- "end": {
23583
- "type": "number"
23584
- }
24792
+ "input": {}
23585
24793
  },
23586
24794
  "additionalProperties": false
23587
24795
  }
@@ -23590,8 +24798,8 @@
23590
24798
  {
23591
24799
  "type": "function",
23592
24800
  "function": {
23593
- "name": "doc_lists_list",
23594
- "description": "List all list nodes in the document, optionally filtered by scope.",
24801
+ "name": "doc_lists_canJoin",
24802
+ "description": "Check whether two adjacent list sequences can be joined.",
23595
24803
  "parameters": {
23596
24804
  "type": "object",
23597
24805
  "properties": {
@@ -23601,42 +24809,14 @@
23601
24809
  "sessionId": {
23602
24810
  "type": "string"
23603
24811
  },
23604
- "within": {
24812
+ "target": {
23605
24813
  "type": "object",
23606
24814
  "properties": {
23607
24815
  "kind": {
23608
24816
  "const": "block"
23609
24817
  },
23610
24818
  "nodeType": {
23611
- "oneOf": [
23612
- {
23613
- "const": "paragraph"
23614
- },
23615
- {
23616
- "const": "heading"
23617
- },
23618
- {
23619
- "const": "listItem"
23620
- },
23621
- {
23622
- "const": "table"
23623
- },
23624
- {
23625
- "const": "tableRow"
23626
- },
23627
- {
23628
- "const": "tableCell"
23629
- },
23630
- {
23631
- "const": "tableOfContents"
23632
- },
23633
- {
23634
- "const": "image"
23635
- },
23636
- {
23637
- "const": "sdt"
23638
- }
23639
- ]
24819
+ "const": "listItem"
23640
24820
  },
23641
24821
  "nodeId": {
23642
24822
  "type": "string"
@@ -23648,22 +24828,58 @@
23648
24828
  "nodeId"
23649
24829
  ]
23650
24830
  },
23651
- "limit": {
23652
- "type": "number"
24831
+ "direction": {
24832
+ "type": "string"
23653
24833
  },
23654
- "offset": {
23655
- "type": "number"
24834
+ "input": {}
24835
+ },
24836
+ "additionalProperties": false
24837
+ }
24838
+ }
24839
+ },
24840
+ {
24841
+ "type": "function",
24842
+ "function": {
24843
+ "name": "doc_lists_separate",
24844
+ "description": "Split a list sequence at the target item, creating a new sequence from that point forward.",
24845
+ "parameters": {
24846
+ "type": "object",
24847
+ "properties": {
24848
+ "doc": {
24849
+ "type": "string"
23656
24850
  },
23657
- "kind": {
24851
+ "sessionId": {
23658
24852
  "type": "string"
23659
24853
  },
23660
- "level": {
23661
- "type": "number"
24854
+ "force": {
24855
+ "type": "boolean"
23662
24856
  },
23663
- "ordinal": {
23664
- "type": "number"
24857
+ "target": {
24858
+ "type": "object",
24859
+ "properties": {
24860
+ "kind": {
24861
+ "const": "block"
24862
+ },
24863
+ "nodeType": {
24864
+ "const": "listItem"
24865
+ },
24866
+ "nodeId": {
24867
+ "type": "string"
24868
+ }
24869
+ },
24870
+ "required": [
24871
+ "kind",
24872
+ "nodeType",
24873
+ "nodeId"
24874
+ ]
23665
24875
  },
23666
- "query": {}
24876
+ "copyOverrides": {
24877
+ "type": "boolean"
24878
+ },
24879
+ "input": {},
24880
+ "nodeId": {
24881
+ "type": "string"
24882
+ }
23667
24883
  },
23668
24884
  "additionalProperties": false
23669
24885
  }
@@ -23672,8 +24888,8 @@
23672
24888
  {
23673
24889
  "type": "function",
23674
24890
  "function": {
23675
- "name": "doc_lists_get",
23676
- "description": "Retrieve a specific list node by target.",
24891
+ "name": "doc_lists_setLevel",
24892
+ "description": "Set the absolute nesting level (0..8) of a list item.",
23677
24893
  "parameters": {
23678
24894
  "type": "object",
23679
24895
  "properties": {
@@ -23683,7 +24899,10 @@
23683
24899
  "sessionId": {
23684
24900
  "type": "string"
23685
24901
  },
23686
- "address": {
24902
+ "force": {
24903
+ "type": "boolean"
24904
+ },
24905
+ "target": {
23687
24906
  "type": "object",
23688
24907
  "properties": {
23689
24908
  "kind": {
@@ -23701,11 +24920,15 @@
23701
24920
  "nodeType",
23702
24921
  "nodeId"
23703
24922
  ]
24923
+ },
24924
+ "level": {
24925
+ "type": "number"
24926
+ },
24927
+ "input": {},
24928
+ "nodeId": {
24929
+ "type": "string"
23704
24930
  }
23705
24931
  },
23706
- "required": [
23707
- "address"
23708
- ],
23709
24932
  "additionalProperties": false
23710
24933
  }
23711
24934
  }
@@ -23713,8 +24936,8 @@
23713
24936
  {
23714
24937
  "type": "function",
23715
24938
  "function": {
23716
- "name": "doc_lists_insert",
23717
- "description": "Insert a new list at the target position.",
24939
+ "name": "doc_lists_setValue",
24940
+ "description": "Set an explicit numbering value at the target item. Mid-sequence targets are atomically separated first.",
23718
24941
  "parameters": {
23719
24942
  "type": "object",
23720
24943
  "properties": {
@@ -23746,11 +24969,8 @@
23746
24969
  "nodeId"
23747
24970
  ]
23748
24971
  },
23749
- "position": {
23750
- "type": "string"
23751
- },
23752
- "text": {
23753
- "type": "string"
24972
+ "value": {
24973
+ "type": "json"
23754
24974
  },
23755
24975
  "input": {},
23756
24976
  "nodeId": {
@@ -23764,8 +24984,8 @@
23764
24984
  {
23765
24985
  "type": "function",
23766
24986
  "function": {
23767
- "name": "doc_lists_create",
23768
- "description": "Create a new list from one or more paragraphs, or convert existing paragraphs into a new list.",
24987
+ "name": "doc_lists_continuePrevious",
24988
+ "description": "Continue numbering from the nearest compatible previous list sequence.",
23769
24989
  "parameters": {
23770
24990
  "type": "object",
23771
24991
  "properties": {
@@ -23778,17 +24998,14 @@
23778
24998
  "force": {
23779
24999
  "type": "boolean"
23780
25000
  },
23781
- "mode": {
23782
- "type": "string"
23783
- },
23784
- "at": {
25001
+ "target": {
23785
25002
  "type": "object",
23786
25003
  "properties": {
23787
25004
  "kind": {
23788
25005
  "const": "block"
23789
25006
  },
23790
25007
  "nodeType": {
23791
- "const": "paragraph"
25008
+ "const": "listItem"
23792
25009
  },
23793
25010
  "nodeId": {
23794
25011
  "type": "string"
@@ -23800,83 +25017,52 @@
23800
25017
  "nodeId"
23801
25018
  ]
23802
25019
  },
25020
+ "input": {},
25021
+ "nodeId": {
25022
+ "type": "string"
25023
+ }
25024
+ },
25025
+ "additionalProperties": false
25026
+ }
25027
+ }
25028
+ },
25029
+ {
25030
+ "type": "function",
25031
+ "function": {
25032
+ "name": "doc_lists_canContinuePrevious",
25033
+ "description": "Check whether the target sequence can continue numbering from a previous compatible sequence.",
25034
+ "parameters": {
25035
+ "type": "object",
25036
+ "properties": {
25037
+ "doc": {
25038
+ "type": "string"
25039
+ },
25040
+ "sessionId": {
25041
+ "type": "string"
25042
+ },
23803
25043
  "target": {
23804
- "oneOf": [
23805
- {
23806
- "type": "object",
23807
- "properties": {
23808
- "kind": {
23809
- "const": "block"
23810
- },
23811
- "nodeType": {
23812
- "const": "paragraph"
23813
- },
23814
- "nodeId": {
23815
- "type": "string"
23816
- }
23817
- },
23818
- "required": [
23819
- "kind",
23820
- "nodeType",
23821
- "nodeId"
23822
- ]
25044
+ "type": "object",
25045
+ "properties": {
25046
+ "kind": {
25047
+ "const": "block"
23823
25048
  },
23824
- {
23825
- "type": "object",
23826
- "properties": {
23827
- "from": {
23828
- "type": "object",
23829
- "properties": {
23830
- "kind": {
23831
- "const": "block"
23832
- },
23833
- "nodeType": {
23834
- "const": "paragraph"
23835
- },
23836
- "nodeId": {
23837
- "type": "string"
23838
- }
23839
- },
23840
- "required": [
23841
- "kind",
23842
- "nodeType",
23843
- "nodeId"
23844
- ]
23845
- },
23846
- "to": {
23847
- "type": "object",
23848
- "properties": {
23849
- "kind": {
23850
- "const": "block"
23851
- },
23852
- "nodeType": {
23853
- "const": "paragraph"
23854
- },
23855
- "nodeId": {
23856
- "type": "string"
23857
- }
23858
- },
23859
- "required": [
23860
- "kind",
23861
- "nodeType",
23862
- "nodeId"
23863
- ]
23864
- }
23865
- },
23866
- "required": [
23867
- "from",
23868
- "to"
23869
- ]
25049
+ "nodeType": {
25050
+ "const": "listItem"
25051
+ },
25052
+ "nodeId": {
25053
+ "type": "string"
23870
25054
  }
25055
+ },
25056
+ "required": [
25057
+ "kind",
25058
+ "nodeType",
25059
+ "nodeId"
23871
25060
  ]
23872
25061
  },
23873
- "kind": {
25062
+ "input": {},
25063
+ "nodeId": {
23874
25064
  "type": "string"
23875
- },
23876
- "level": {
23877
- "type": "number"
23878
- },
23879
- "input": {}
25065
+ }
23880
25066
  },
23881
25067
  "additionalProperties": false
23882
25068
  }
@@ -23885,8 +25071,8 @@
23885
25071
  {
23886
25072
  "type": "function",
23887
25073
  "function": {
23888
- "name": "doc_lists_attach",
23889
- "description": "Convert non-list paragraphs to list items under an existing list sequence.",
25074
+ "name": "doc_lists_setLevelRestart",
25075
+ "description": "Set the restart behavior for a specific list level.",
23890
25076
  "parameters": {
23891
25077
  "type": "object",
23892
25078
  "properties": {
@@ -23900,76 +25086,6 @@
23900
25086
  "type": "boolean"
23901
25087
  },
23902
25088
  "target": {
23903
- "oneOf": [
23904
- {
23905
- "type": "object",
23906
- "properties": {
23907
- "kind": {
23908
- "const": "block"
23909
- },
23910
- "nodeType": {
23911
- "const": "paragraph"
23912
- },
23913
- "nodeId": {
23914
- "type": "string"
23915
- }
23916
- },
23917
- "required": [
23918
- "kind",
23919
- "nodeType",
23920
- "nodeId"
23921
- ]
23922
- },
23923
- {
23924
- "type": "object",
23925
- "properties": {
23926
- "from": {
23927
- "type": "object",
23928
- "properties": {
23929
- "kind": {
23930
- "const": "block"
23931
- },
23932
- "nodeType": {
23933
- "const": "paragraph"
23934
- },
23935
- "nodeId": {
23936
- "type": "string"
23937
- }
23938
- },
23939
- "required": [
23940
- "kind",
23941
- "nodeType",
23942
- "nodeId"
23943
- ]
23944
- },
23945
- "to": {
23946
- "type": "object",
23947
- "properties": {
23948
- "kind": {
23949
- "const": "block"
23950
- },
23951
- "nodeType": {
23952
- "const": "paragraph"
23953
- },
23954
- "nodeId": {
23955
- "type": "string"
23956
- }
23957
- },
23958
- "required": [
23959
- "kind",
23960
- "nodeType",
23961
- "nodeId"
23962
- ]
23963
- }
23964
- },
23965
- "required": [
23966
- "from",
23967
- "to"
23968
- ]
23969
- }
23970
- ]
23971
- },
23972
- "attachTo": {
23973
25089
  "type": "object",
23974
25090
  "properties": {
23975
25091
  "kind": {
@@ -23991,6 +25107,12 @@
23991
25107
  "level": {
23992
25108
  "type": "number"
23993
25109
  },
25110
+ "restartAfterLevel": {
25111
+ "type": "json"
25112
+ },
25113
+ "scope": {
25114
+ "type": "string"
25115
+ },
23994
25116
  "input": {}
23995
25117
  },
23996
25118
  "additionalProperties": false
@@ -24000,8 +25122,8 @@
24000
25122
  {
24001
25123
  "type": "function",
24002
25124
  "function": {
24003
- "name": "doc_lists_detach",
24004
- "description": "Remove numbering properties from list items, converting them to plain paragraphs.",
25125
+ "name": "doc_lists_convertToText",
25126
+ "description": "Convert list items to plain paragraphs, optionally prepending the rendered marker text.",
24005
25127
  "parameters": {
24006
25128
  "type": "object",
24007
25129
  "properties": {
@@ -24033,6 +25155,9 @@
24033
25155
  "nodeId"
24034
25156
  ]
24035
25157
  },
25158
+ "includeMarker": {
25159
+ "type": "boolean"
25160
+ },
24036
25161
  "input": {},
24037
25162
  "nodeId": {
24038
25163
  "type": "string"
@@ -24045,8 +25170,8 @@
24045
25170
  {
24046
25171
  "type": "function",
24047
25172
  "function": {
24048
- "name": "doc_lists_indent",
24049
- "description": "Increase the indentation level of a list item.",
25173
+ "name": "doc_lists_applyTemplate",
25174
+ "description": "Apply a captured ListTemplate to the target list, optionally filtered to specific levels.",
24050
25175
  "parameters": {
24051
25176
  "type": "object",
24052
25177
  "properties": {
@@ -24078,10 +25203,94 @@
24078
25203
  "nodeId"
24079
25204
  ]
24080
25205
  },
24081
- "input": {},
24082
- "nodeId": {
24083
- "type": "string"
24084
- }
25206
+ "template": {
25207
+ "type": "object",
25208
+ "properties": {
25209
+ "version": {
25210
+ "const": 1
25211
+ },
25212
+ "levels": {
25213
+ "type": "array",
25214
+ "items": {
25215
+ "type": "object",
25216
+ "properties": {
25217
+ "level": {
25218
+ "type": "number"
25219
+ },
25220
+ "numFmt": {
25221
+ "type": "string"
25222
+ },
25223
+ "lvlText": {
25224
+ "type": "string"
25225
+ },
25226
+ "start": {
25227
+ "type": "number"
25228
+ },
25229
+ "alignment": {
25230
+ "oneOf": [
25231
+ {
25232
+ "const": "left"
25233
+ },
25234
+ {
25235
+ "const": "center"
25236
+ },
25237
+ {
25238
+ "const": "right"
25239
+ }
25240
+ ]
25241
+ },
25242
+ "indents": {
25243
+ "type": "object",
25244
+ "properties": {
25245
+ "left": {
25246
+ "type": "number"
25247
+ },
25248
+ "hanging": {
25249
+ "type": "number"
25250
+ },
25251
+ "firstLine": {
25252
+ "type": "number"
25253
+ }
25254
+ }
25255
+ },
25256
+ "trailingCharacter": {
25257
+ "oneOf": [
25258
+ {
25259
+ "const": "tab"
25260
+ },
25261
+ {
25262
+ "const": "space"
25263
+ },
25264
+ {
25265
+ "const": "nothing"
25266
+ }
25267
+ ]
25268
+ },
25269
+ "markerFont": {
25270
+ "type": "string"
25271
+ },
25272
+ "pictureBulletId": {
25273
+ "type": "number"
25274
+ }
25275
+ },
25276
+ "required": [
25277
+ "level"
25278
+ ]
25279
+ }
25280
+ }
25281
+ },
25282
+ "required": [
25283
+ "version",
25284
+ "levels"
25285
+ ]
25286
+ },
25287
+ "levels": {
25288
+ "type": "array",
25289
+ "items": {
25290
+ "type": "number"
25291
+ }
25292
+ },
25293
+ "input": {}
24085
25294
  },
24086
25295
  "additionalProperties": false
24087
25296
  }
@@ -24090,8 +25299,8 @@
24090
25299
  {
24091
25300
  "type": "function",
24092
25301
  "function": {
24093
- "name": "doc_lists_outdent",
24094
- "description": "Decrease the indentation level of a list item.",
25302
+ "name": "doc_lists_applyPreset",
25303
+ "description": "Apply a built-in list formatting preset to the target list.",
24095
25304
  "parameters": {
24096
25305
  "type": "object",
24097
25306
  "properties": {
@@ -24123,10 +25332,16 @@
24123
25332
  "nodeId"
24124
25333
  ]
24125
25334
  },
24126
- "input": {},
24127
- "nodeId": {
25335
+ "preset": {
24128
25336
  "type": "string"
24129
- }
25337
+ },
25338
+ "levels": {
25339
+ "type": "array",
25340
+ "items": {
25341
+ "type": "number"
25342
+ }
25343
+ },
25344
+ "input": {}
24130
25345
  },
24131
25346
  "additionalProperties": false
24132
25347
  }
@@ -24135,8 +25350,8 @@
24135
25350
  {
24136
25351
  "type": "function",
24137
25352
  "function": {
24138
- "name": "doc_lists_join",
24139
- "description": "Merge two adjacent list sequences into one.",
25353
+ "name": "doc_lists_captureTemplate",
25354
+ "description": "Capture the formatting of a list as a reusable ListTemplate.",
24140
25355
  "parameters": {
24141
25356
  "type": "object",
24142
25357
  "properties": {
@@ -24146,9 +25361,6 @@
24146
25361
  "sessionId": {
24147
25362
  "type": "string"
24148
25363
  },
24149
- "force": {
24150
- "type": "boolean"
24151
- },
24152
25364
  "target": {
24153
25365
  "type": "object",
24154
25366
  "properties": {
@@ -24168,8 +25380,11 @@
24168
25380
  "nodeId"
24169
25381
  ]
24170
25382
  },
24171
- "direction": {
24172
- "type": "string"
25383
+ "levels": {
25384
+ "type": "array",
25385
+ "items": {
25386
+ "type": "number"
25387
+ }
24173
25388
  },
24174
25389
  "input": {}
24175
25390
  },
@@ -24180,8 +25395,8 @@
24180
25395
  {
24181
25396
  "type": "function",
24182
25397
  "function": {
24183
- "name": "doc_lists_canJoin",
24184
- "description": "Check whether two adjacent list sequences can be joined.",
25398
+ "name": "doc_lists_setLevelNumbering",
25399
+ "description": "Set the numbering format, pattern, and optional start value for a specific list level.",
24185
25400
  "parameters": {
24186
25401
  "type": "object",
24187
25402
  "properties": {
@@ -24191,6 +25406,9 @@
24191
25406
  "sessionId": {
24192
25407
  "type": "string"
24193
25408
  },
25409
+ "force": {
25410
+ "type": "boolean"
25411
+ },
24194
25412
  "target": {
24195
25413
  "type": "object",
24196
25414
  "properties": {
@@ -24210,9 +25428,18 @@
24210
25428
  "nodeId"
24211
25429
  ]
24212
25430
  },
24213
- "direction": {
25431
+ "level": {
25432
+ "type": "number"
25433
+ },
25434
+ "numFmt": {
25435
+ "type": "string"
25436
+ },
25437
+ "lvlText": {
24214
25438
  "type": "string"
24215
25439
  },
25440
+ "start": {
25441
+ "type": "number"
25442
+ },
24216
25443
  "input": {}
24217
25444
  },
24218
25445
  "additionalProperties": false
@@ -24222,8 +25449,8 @@
24222
25449
  {
24223
25450
  "type": "function",
24224
25451
  "function": {
24225
- "name": "doc_lists_separate",
24226
- "description": "Split a list sequence at the target item, creating a new sequence from that point forward.",
25452
+ "name": "doc_lists_setLevelBullet",
25453
+ "description": "Set the bullet marker text for a specific list level.",
24227
25454
  "parameters": {
24228
25455
  "type": "object",
24229
25456
  "properties": {
@@ -24255,13 +25482,13 @@
24255
25482
  "nodeId"
24256
25483
  ]
24257
25484
  },
24258
- "copyOverrides": {
24259
- "type": "boolean"
25485
+ "level": {
25486
+ "type": "number"
24260
25487
  },
24261
- "input": {},
24262
- "nodeId": {
25488
+ "markerText": {
24263
25489
  "type": "string"
24264
- }
25490
+ },
25491
+ "input": {}
24265
25492
  },
24266
25493
  "additionalProperties": false
24267
25494
  }
@@ -24270,8 +25497,8 @@
24270
25497
  {
24271
25498
  "type": "function",
24272
25499
  "function": {
24273
- "name": "doc_lists_setLevel",
24274
- "description": "Set the absolute nesting level (0..8) of a list item.",
25500
+ "name": "doc_lists_setLevelPictureBullet",
25501
+ "description": "Set a picture bullet for a specific list level by its OOXML lvlPicBulletId.",
24275
25502
  "parameters": {
24276
25503
  "type": "object",
24277
25504
  "properties": {
@@ -24306,10 +25533,10 @@
24306
25533
  "level": {
24307
25534
  "type": "number"
24308
25535
  },
24309
- "input": {},
24310
- "nodeId": {
24311
- "type": "string"
24312
- }
25536
+ "pictureBulletId": {
25537
+ "type": "number"
25538
+ },
25539
+ "input": {}
24313
25540
  },
24314
25541
  "additionalProperties": false
24315
25542
  }
@@ -24318,8 +25545,8 @@
24318
25545
  {
24319
25546
  "type": "function",
24320
25547
  "function": {
24321
- "name": "doc_lists_setValue",
24322
- "description": "Set an explicit numbering value at the target item. Mid-sequence targets are atomically separated first.",
25548
+ "name": "doc_lists_setLevelAlignment",
25549
+ "description": "Set the marker alignment (left, center, right) for a specific list level.",
24323
25550
  "parameters": {
24324
25551
  "type": "object",
24325
25552
  "properties": {
@@ -24351,13 +25578,13 @@
24351
25578
  "nodeId"
24352
25579
  ]
24353
25580
  },
24354
- "value": {
24355
- "type": "json"
25581
+ "level": {
25582
+ "type": "number"
24356
25583
  },
24357
- "input": {},
24358
- "nodeId": {
25584
+ "alignment": {
24359
25585
  "type": "string"
24360
- }
25586
+ },
25587
+ "input": {}
24361
25588
  },
24362
25589
  "additionalProperties": false
24363
25590
  }
@@ -24366,8 +25593,8 @@
24366
25593
  {
24367
25594
  "type": "function",
24368
25595
  "function": {
24369
- "name": "doc_lists_continuePrevious",
24370
- "description": "Continue numbering from the nearest compatible previous list sequence.",
25596
+ "name": "doc_lists_setLevelIndents",
25597
+ "description": "Set the paragraph indentation values (left, hanging, firstLine) for a specific list level.",
24371
25598
  "parameters": {
24372
25599
  "type": "object",
24373
25600
  "properties": {
@@ -24399,10 +25626,19 @@
24399
25626
  "nodeId"
24400
25627
  ]
24401
25628
  },
24402
- "input": {},
24403
- "nodeId": {
24404
- "type": "string"
24405
- }
25629
+ "level": {
25630
+ "type": "number"
25631
+ },
25632
+ "left": {
25633
+ "type": "number"
25634
+ },
25635
+ "hanging": {
25636
+ "type": "number"
25637
+ },
25638
+ "firstLine": {
25639
+ "type": "number"
25640
+ },
25641
+ "input": {}
24406
25642
  },
24407
25643
  "additionalProperties": false
24408
25644
  }
@@ -24411,8 +25647,8 @@
24411
25647
  {
24412
25648
  "type": "function",
24413
25649
  "function": {
24414
- "name": "doc_lists_canContinuePrevious",
24415
- "description": "Check whether the target sequence can continue numbering from a previous compatible sequence.",
25650
+ "name": "doc_lists_setLevelTrailingCharacter",
25651
+ "description": "Set the trailing character (tab, space, nothing) after the marker for a specific list level.",
24416
25652
  "parameters": {
24417
25653
  "type": "object",
24418
25654
  "properties": {
@@ -24422,6 +25658,9 @@
24422
25658
  "sessionId": {
24423
25659
  "type": "string"
24424
25660
  },
25661
+ "force": {
25662
+ "type": "boolean"
25663
+ },
24425
25664
  "target": {
24426
25665
  "type": "object",
24427
25666
  "properties": {
@@ -24441,10 +25680,13 @@
24441
25680
  "nodeId"
24442
25681
  ]
24443
25682
  },
24444
- "input": {},
24445
- "nodeId": {
25683
+ "level": {
25684
+ "type": "number"
25685
+ },
25686
+ "trailingCharacter": {
24446
25687
  "type": "string"
24447
- }
25688
+ },
25689
+ "input": {}
24448
25690
  },
24449
25691
  "additionalProperties": false
24450
25692
  }
@@ -24453,8 +25695,8 @@
24453
25695
  {
24454
25696
  "type": "function",
24455
25697
  "function": {
24456
- "name": "doc_lists_setLevelRestart",
24457
- "description": "Set the restart behavior for a specific list level.",
25698
+ "name": "doc_lists_setLevelMarkerFont",
25699
+ "description": "Set the font family used for the marker character at a specific list level.",
24458
25700
  "parameters": {
24459
25701
  "type": "object",
24460
25702
  "properties": {
@@ -24489,10 +25731,7 @@
24489
25731
  "level": {
24490
25732
  "type": "number"
24491
25733
  },
24492
- "restartAfterLevel": {
24493
- "type": "json"
24494
- },
24495
- "scope": {
25734
+ "fontFamily": {
24496
25735
  "type": "string"
24497
25736
  },
24498
25737
  "input": {}
@@ -24504,8 +25743,8 @@
24504
25743
  {
24505
25744
  "type": "function",
24506
25745
  "function": {
24507
- "name": "doc_lists_convertToText",
24508
- "description": "Convert list items to plain paragraphs, optionally prepending the rendered marker text.",
25746
+ "name": "doc_lists_clearLevelOverrides",
25747
+ "description": "Remove instance-level overrides for a specific list level, restoring abstract definition values.",
24509
25748
  "parameters": {
24510
25749
  "type": "object",
24511
25750
  "properties": {
@@ -24537,13 +25776,10 @@
24537
25776
  "nodeId"
24538
25777
  ]
24539
25778
  },
24540
- "includeMarker": {
24541
- "type": "boolean"
25779
+ "level": {
25780
+ "type": "number"
24542
25781
  },
24543
- "input": {},
24544
- "nodeId": {
24545
- "type": "string"
24546
- }
25782
+ "input": {}
24547
25783
  },
24548
25784
  "additionalProperties": false
24549
25785
  }