@superdoc-dev/sdk 1.0.0-next.73 → 1.0.0-next.75
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.
- package/README.md +28 -21
- package/dist/generated/client.cjs +476 -0
- package/dist/generated/client.d.ts +9049 -147
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +475 -0
- package/dist/generated/contract.cjs +1338 -287
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +1338 -287
- package/dist/generated/intent-dispatch.generated.cjs +1 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +1 -0
- package/dist/helpers/format.d.ts +6 -8
- package/dist/helpers/format.d.ts.map +1 -1
- package/dist/helpers/format.js +5 -8
- package/dist/index.cjs +130 -8
- package/dist/index.d.ts +73 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +130 -8
- package/dist/runtime/process.d.ts +2 -2
- package/dist/runtime/process.d.ts.map +1 -1
- package/dist/runtime/transport-common.d.ts +7 -0
- package/dist/runtime/transport-common.d.ts.map +1 -1
- package/dist/tools.cjs +19 -6
- package/dist/tools.d.ts +8 -3
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +19 -6
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +100 -1039
- package/tools/intent_dispatch_generated.py +2 -0
- package/tools/system-prompt.md +47 -11
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +96 -1039
- package/tools/tools.generic.json +99 -1041
- package/tools/tools.openai.json +96 -1039
- package/tools/tools.vercel.json +96 -1039
package/tools/catalog.json
CHANGED
|
@@ -5,177 +5,49 @@
|
|
|
5
5
|
"tools": [
|
|
6
6
|
{
|
|
7
7
|
"toolName": "superdoc_get_content",
|
|
8
|
-
"description": "Read document content
|
|
8
|
+
"description": "Read document content. Use action \"info\" for structure and styles, \"blocks\" for all block IDs and types, \"text\" or \"markdown\" for content. Call info or blocks before editing.",
|
|
9
9
|
"inputSchema": {
|
|
10
10
|
"type": "object",
|
|
11
11
|
"properties": {
|
|
12
12
|
"action": {
|
|
13
13
|
"type": "string",
|
|
14
14
|
"enum": [
|
|
15
|
+
"blocks",
|
|
15
16
|
"html",
|
|
16
17
|
"info",
|
|
17
18
|
"markdown",
|
|
18
19
|
"text"
|
|
19
20
|
],
|
|
20
|
-
"description": "The action to perform. One of: html, info, markdown, text."
|
|
21
|
+
"description": "The action to perform. One of: blocks, html, info, markdown, text."
|
|
21
22
|
},
|
|
22
|
-
"
|
|
23
|
-
"type": "
|
|
24
|
-
"description": "
|
|
23
|
+
"unflattenLists": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "When true, flattens nested list structures in output. Default: false. Only for action 'html'. Omit for other actions."
|
|
25
26
|
},
|
|
26
|
-
"
|
|
27
|
-
"type": "
|
|
28
|
-
"description": "
|
|
27
|
+
"offset": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"description": "Number of blocks to skip. Default: 0. Only for action 'blocks'. Omit for other actions."
|
|
29
30
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"type": "object",
|
|
34
|
-
"properties": {
|
|
35
|
-
"kind": {
|
|
36
|
-
"const": "story",
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"storyType": {
|
|
40
|
-
"const": "body",
|
|
41
|
-
"type": "string"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"required": [
|
|
45
|
-
"kind",
|
|
46
|
-
"storyType"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "object",
|
|
51
|
-
"properties": {
|
|
52
|
-
"kind": {
|
|
53
|
-
"const": "story",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
"storyType": {
|
|
57
|
-
"const": "headerFooterSlot",
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
"section": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"properties": {
|
|
63
|
-
"kind": {
|
|
64
|
-
"const": "section",
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
"sectionId": {
|
|
68
|
-
"type": "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"required": [
|
|
72
|
-
"kind",
|
|
73
|
-
"sectionId"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"headerFooterKind": {
|
|
77
|
-
"enum": [
|
|
78
|
-
"header",
|
|
79
|
-
"footer"
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"variant": {
|
|
83
|
-
"enum": [
|
|
84
|
-
"default",
|
|
85
|
-
"first",
|
|
86
|
-
"even"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
"resolution": {
|
|
90
|
-
"enum": [
|
|
91
|
-
"effective",
|
|
92
|
-
"explicit"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"onWrite": {
|
|
96
|
-
"enum": [
|
|
97
|
-
"materializeIfInherited",
|
|
98
|
-
"editResolvedPart",
|
|
99
|
-
"error"
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"required": [
|
|
104
|
-
"kind",
|
|
105
|
-
"storyType",
|
|
106
|
-
"section",
|
|
107
|
-
"headerFooterKind",
|
|
108
|
-
"variant"
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"type": "object",
|
|
113
|
-
"properties": {
|
|
114
|
-
"kind": {
|
|
115
|
-
"const": "story",
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"storyType": {
|
|
119
|
-
"const": "headerFooterPart",
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
"refId": {
|
|
123
|
-
"type": "string"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"required": [
|
|
127
|
-
"kind",
|
|
128
|
-
"storyType",
|
|
129
|
-
"refId"
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "object",
|
|
134
|
-
"properties": {
|
|
135
|
-
"kind": {
|
|
136
|
-
"const": "story",
|
|
137
|
-
"type": "string"
|
|
138
|
-
},
|
|
139
|
-
"storyType": {
|
|
140
|
-
"const": "footnote",
|
|
141
|
-
"type": "string"
|
|
142
|
-
},
|
|
143
|
-
"noteId": {
|
|
144
|
-
"type": "string"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"required": [
|
|
148
|
-
"kind",
|
|
149
|
-
"storyType",
|
|
150
|
-
"noteId"
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"type": "object",
|
|
155
|
-
"properties": {
|
|
156
|
-
"kind": {
|
|
157
|
-
"const": "story",
|
|
158
|
-
"type": "string"
|
|
159
|
-
},
|
|
160
|
-
"storyType": {
|
|
161
|
-
"const": "endnote",
|
|
162
|
-
"type": "string"
|
|
163
|
-
},
|
|
164
|
-
"noteId": {
|
|
165
|
-
"type": "string"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"required": [
|
|
169
|
-
"kind",
|
|
170
|
-
"storyType",
|
|
171
|
-
"noteId"
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
]
|
|
31
|
+
"limit": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"description": "Maximum blocks to return. Omit for all blocks. Only for action 'blocks'. Omit for other actions."
|
|
175
34
|
},
|
|
176
|
-
"
|
|
177
|
-
"type": "
|
|
178
|
-
"
|
|
35
|
+
"nodeTypes": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"enum": [
|
|
39
|
+
"paragraph",
|
|
40
|
+
"heading",
|
|
41
|
+
"listItem",
|
|
42
|
+
"table",
|
|
43
|
+
"tableRow",
|
|
44
|
+
"tableCell",
|
|
45
|
+
"tableOfContents",
|
|
46
|
+
"image",
|
|
47
|
+
"sdt"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"description": "Filter by block types (e.g. ['paragraph', 'heading']). Omit for all types. Only for action 'blocks'. Omit for other actions."
|
|
179
51
|
}
|
|
180
52
|
},
|
|
181
53
|
"required": [
|
|
@@ -200,6 +72,10 @@
|
|
|
200
72
|
{
|
|
201
73
|
"operationId": "doc.info",
|
|
202
74
|
"intentAction": "info"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"operationId": "doc.blocks.list",
|
|
78
|
+
"intentAction": "blocks"
|
|
203
79
|
}
|
|
204
80
|
]
|
|
205
81
|
},
|
|
@@ -220,14 +96,6 @@
|
|
|
220
96
|
],
|
|
221
97
|
"description": "The action to perform. One of: delete, insert, redo, replace, undo."
|
|
222
98
|
},
|
|
223
|
-
"doc": {
|
|
224
|
-
"type": "string",
|
|
225
|
-
"description": "Document path. Optional when a session is already open."
|
|
226
|
-
},
|
|
227
|
-
"sessionId": {
|
|
228
|
-
"type": "string",
|
|
229
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
230
|
-
},
|
|
231
99
|
"force": {
|
|
232
100
|
"type": "boolean",
|
|
233
101
|
"description": "Bypass confirmation checks."
|
|
@@ -437,159 +305,13 @@
|
|
|
437
305
|
],
|
|
438
306
|
"description": "Target address object. Use 'ref' instead if you have a search handle. Format: {kind:'text', blockId, range:{start,end}} or {kind:'block', nodeType, nodeId}."
|
|
439
307
|
},
|
|
440
|
-
"in": {
|
|
441
|
-
"oneOf": [
|
|
442
|
-
{
|
|
443
|
-
"type": "object",
|
|
444
|
-
"properties": {
|
|
445
|
-
"kind": {
|
|
446
|
-
"const": "story",
|
|
447
|
-
"type": "string"
|
|
448
|
-
},
|
|
449
|
-
"storyType": {
|
|
450
|
-
"const": "body",
|
|
451
|
-
"type": "string"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
"required": [
|
|
455
|
-
"kind",
|
|
456
|
-
"storyType"
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"type": "object",
|
|
461
|
-
"properties": {
|
|
462
|
-
"kind": {
|
|
463
|
-
"const": "story",
|
|
464
|
-
"type": "string"
|
|
465
|
-
},
|
|
466
|
-
"storyType": {
|
|
467
|
-
"const": "headerFooterSlot",
|
|
468
|
-
"type": "string"
|
|
469
|
-
},
|
|
470
|
-
"section": {
|
|
471
|
-
"type": "object",
|
|
472
|
-
"properties": {
|
|
473
|
-
"kind": {
|
|
474
|
-
"const": "section",
|
|
475
|
-
"type": "string"
|
|
476
|
-
},
|
|
477
|
-
"sectionId": {
|
|
478
|
-
"type": "string"
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
"required": [
|
|
482
|
-
"kind",
|
|
483
|
-
"sectionId"
|
|
484
|
-
]
|
|
485
|
-
},
|
|
486
|
-
"headerFooterKind": {
|
|
487
|
-
"enum": [
|
|
488
|
-
"header",
|
|
489
|
-
"footer"
|
|
490
|
-
]
|
|
491
|
-
},
|
|
492
|
-
"variant": {
|
|
493
|
-
"enum": [
|
|
494
|
-
"default",
|
|
495
|
-
"first",
|
|
496
|
-
"even"
|
|
497
|
-
]
|
|
498
|
-
},
|
|
499
|
-
"resolution": {
|
|
500
|
-
"enum": [
|
|
501
|
-
"effective",
|
|
502
|
-
"explicit"
|
|
503
|
-
]
|
|
504
|
-
},
|
|
505
|
-
"onWrite": {
|
|
506
|
-
"enum": [
|
|
507
|
-
"materializeIfInherited",
|
|
508
|
-
"editResolvedPart",
|
|
509
|
-
"error"
|
|
510
|
-
]
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
"required": [
|
|
514
|
-
"kind",
|
|
515
|
-
"storyType",
|
|
516
|
-
"section",
|
|
517
|
-
"headerFooterKind",
|
|
518
|
-
"variant"
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"type": "object",
|
|
523
|
-
"properties": {
|
|
524
|
-
"kind": {
|
|
525
|
-
"const": "story",
|
|
526
|
-
"type": "string"
|
|
527
|
-
},
|
|
528
|
-
"storyType": {
|
|
529
|
-
"const": "headerFooterPart",
|
|
530
|
-
"type": "string"
|
|
531
|
-
},
|
|
532
|
-
"refId": {
|
|
533
|
-
"type": "string"
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
"required": [
|
|
537
|
-
"kind",
|
|
538
|
-
"storyType",
|
|
539
|
-
"refId"
|
|
540
|
-
]
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"type": "object",
|
|
544
|
-
"properties": {
|
|
545
|
-
"kind": {
|
|
546
|
-
"const": "story",
|
|
547
|
-
"type": "string"
|
|
548
|
-
},
|
|
549
|
-
"storyType": {
|
|
550
|
-
"const": "footnote",
|
|
551
|
-
"type": "string"
|
|
552
|
-
},
|
|
553
|
-
"noteId": {
|
|
554
|
-
"type": "string"
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
"required": [
|
|
558
|
-
"kind",
|
|
559
|
-
"storyType",
|
|
560
|
-
"noteId"
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"type": "object",
|
|
565
|
-
"properties": {
|
|
566
|
-
"kind": {
|
|
567
|
-
"const": "story",
|
|
568
|
-
"type": "string"
|
|
569
|
-
},
|
|
570
|
-
"storyType": {
|
|
571
|
-
"const": "endnote",
|
|
572
|
-
"type": "string"
|
|
573
|
-
},
|
|
574
|
-
"noteId": {
|
|
575
|
-
"type": "string"
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
"required": [
|
|
579
|
-
"kind",
|
|
580
|
-
"storyType",
|
|
581
|
-
"noteId"
|
|
582
|
-
]
|
|
583
|
-
}
|
|
584
|
-
]
|
|
585
|
-
},
|
|
586
308
|
"value": {
|
|
587
309
|
"type": "string",
|
|
588
|
-
"description": "Text content to insert."
|
|
310
|
+
"description": "Text content to insert. Only for action 'insert'. Omit for other actions."
|
|
589
311
|
},
|
|
590
312
|
"type": {
|
|
591
313
|
"type": "string",
|
|
592
|
-
"description": "Content format: 'text' (default), 'markdown', or 'html'.",
|
|
314
|
+
"description": "Content format: 'text' (default), 'markdown', or 'html'. Only for action 'insert'. Omit for other actions.",
|
|
593
315
|
"enum": [
|
|
594
316
|
"text",
|
|
595
317
|
"markdown",
|
|
@@ -614,11 +336,11 @@
|
|
|
614
336
|
}
|
|
615
337
|
}
|
|
616
338
|
],
|
|
617
|
-
"description": "Document fragment to insert (structured content)."
|
|
339
|
+
"description": "Document fragment to insert (structured content). Only for actions 'insert', 'replace'. Omit for other actions."
|
|
618
340
|
},
|
|
619
341
|
"placement": {
|
|
620
342
|
"type": "string",
|
|
621
|
-
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'.",
|
|
343
|
+
"description": "Where to place content relative to target: 'before', 'after', 'insideStart', or 'insideEnd'. Only for action 'insert'. Omit for other actions.",
|
|
622
344
|
"enum": [
|
|
623
345
|
"before",
|
|
624
346
|
"after",
|
|
@@ -636,7 +358,7 @@
|
|
|
636
358
|
]
|
|
637
359
|
}
|
|
638
360
|
},
|
|
639
|
-
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables."
|
|
361
|
+
"description": "Controls nesting behavior. tables: 'allow' permits inserting tables inside other tables. Only for actions 'insert', 'replace'. Omit for other actions."
|
|
640
362
|
},
|
|
641
363
|
"blockId": {
|
|
642
364
|
"type": "string",
|
|
@@ -652,11 +374,11 @@
|
|
|
652
374
|
},
|
|
653
375
|
"offset": {
|
|
654
376
|
"type": "number",
|
|
655
|
-
"description": "Character offset for insertion (alias for --start/--end with same value)."
|
|
377
|
+
"description": "Character offset for insertion (alias for --start/--end with same value). Only for action 'insert'. Omit for other actions."
|
|
656
378
|
},
|
|
657
379
|
"text": {
|
|
658
380
|
"type": "string",
|
|
659
|
-
"description": "Replacement text content."
|
|
381
|
+
"description": "Replacement text content. Only for action 'replace'. Omit for other actions."
|
|
660
382
|
},
|
|
661
383
|
"behavior": {
|
|
662
384
|
"type": "string",
|
|
@@ -664,7 +386,7 @@
|
|
|
664
386
|
"selection",
|
|
665
387
|
"exact"
|
|
666
388
|
],
|
|
667
|
-
"description": "Delete behavior: 'selection' (default) or 'exact'."
|
|
389
|
+
"description": "Delete behavior: 'selection' (default) or 'exact'. Only for action 'delete'. Omit for other actions."
|
|
668
390
|
}
|
|
669
391
|
},
|
|
670
392
|
"required": [
|
|
@@ -740,7 +462,7 @@
|
|
|
740
462
|
},
|
|
741
463
|
{
|
|
742
464
|
"toolName": "superdoc_format",
|
|
743
|
-
"description": "Change text and paragraph formatting",
|
|
465
|
+
"description": "Change text and paragraph formatting. Use action \"inline\" with a search ref for bold/italic/etc. Use action \"set_style\" with a styleId from superdoc_get_content info to apply a named paragraph style.",
|
|
744
466
|
"inputSchema": {
|
|
745
467
|
"type": "object",
|
|
746
468
|
"properties": {
|
|
@@ -756,14 +478,6 @@
|
|
|
756
478
|
],
|
|
757
479
|
"description": "The action to perform. One of: inline, set_alignment, set_direction, set_indentation, set_spacing, set_style."
|
|
758
480
|
},
|
|
759
|
-
"doc": {
|
|
760
|
-
"type": "string",
|
|
761
|
-
"description": "Document path. Optional when a session is already open."
|
|
762
|
-
},
|
|
763
|
-
"sessionId": {
|
|
764
|
-
"type": "string",
|
|
765
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
766
|
-
},
|
|
767
481
|
"force": {
|
|
768
482
|
"type": "boolean",
|
|
769
483
|
"description": "Bypass confirmation checks."
|
|
@@ -939,152 +653,6 @@
|
|
|
939
653
|
],
|
|
940
654
|
"description": "Selection target: {kind:'selection', start:{kind:'text', blockId, offset}, end:{kind:'text', blockId, offset}}. Use 'ref' instead when you have a search result handle. Required for actions 'set_style', 'set_alignment', 'set_indentation', 'set_spacing', 'set_direction'."
|
|
941
655
|
},
|
|
942
|
-
"in": {
|
|
943
|
-
"oneOf": [
|
|
944
|
-
{
|
|
945
|
-
"type": "object",
|
|
946
|
-
"properties": {
|
|
947
|
-
"kind": {
|
|
948
|
-
"const": "story",
|
|
949
|
-
"type": "string"
|
|
950
|
-
},
|
|
951
|
-
"storyType": {
|
|
952
|
-
"const": "body",
|
|
953
|
-
"type": "string"
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
"required": [
|
|
957
|
-
"kind",
|
|
958
|
-
"storyType"
|
|
959
|
-
]
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
"type": "object",
|
|
963
|
-
"properties": {
|
|
964
|
-
"kind": {
|
|
965
|
-
"const": "story",
|
|
966
|
-
"type": "string"
|
|
967
|
-
},
|
|
968
|
-
"storyType": {
|
|
969
|
-
"const": "headerFooterSlot",
|
|
970
|
-
"type": "string"
|
|
971
|
-
},
|
|
972
|
-
"section": {
|
|
973
|
-
"type": "object",
|
|
974
|
-
"properties": {
|
|
975
|
-
"kind": {
|
|
976
|
-
"const": "section",
|
|
977
|
-
"type": "string"
|
|
978
|
-
},
|
|
979
|
-
"sectionId": {
|
|
980
|
-
"type": "string"
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
"required": [
|
|
984
|
-
"kind",
|
|
985
|
-
"sectionId"
|
|
986
|
-
]
|
|
987
|
-
},
|
|
988
|
-
"headerFooterKind": {
|
|
989
|
-
"enum": [
|
|
990
|
-
"header",
|
|
991
|
-
"footer"
|
|
992
|
-
]
|
|
993
|
-
},
|
|
994
|
-
"variant": {
|
|
995
|
-
"enum": [
|
|
996
|
-
"default",
|
|
997
|
-
"first",
|
|
998
|
-
"even"
|
|
999
|
-
]
|
|
1000
|
-
},
|
|
1001
|
-
"resolution": {
|
|
1002
|
-
"enum": [
|
|
1003
|
-
"effective",
|
|
1004
|
-
"explicit"
|
|
1005
|
-
]
|
|
1006
|
-
},
|
|
1007
|
-
"onWrite": {
|
|
1008
|
-
"enum": [
|
|
1009
|
-
"materializeIfInherited",
|
|
1010
|
-
"editResolvedPart",
|
|
1011
|
-
"error"
|
|
1012
|
-
]
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
"required": [
|
|
1016
|
-
"kind",
|
|
1017
|
-
"storyType",
|
|
1018
|
-
"section",
|
|
1019
|
-
"headerFooterKind",
|
|
1020
|
-
"variant"
|
|
1021
|
-
]
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"type": "object",
|
|
1025
|
-
"properties": {
|
|
1026
|
-
"kind": {
|
|
1027
|
-
"const": "story",
|
|
1028
|
-
"type": "string"
|
|
1029
|
-
},
|
|
1030
|
-
"storyType": {
|
|
1031
|
-
"const": "headerFooterPart",
|
|
1032
|
-
"type": "string"
|
|
1033
|
-
},
|
|
1034
|
-
"refId": {
|
|
1035
|
-
"type": "string"
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"required": [
|
|
1039
|
-
"kind",
|
|
1040
|
-
"storyType",
|
|
1041
|
-
"refId"
|
|
1042
|
-
]
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
"type": "object",
|
|
1046
|
-
"properties": {
|
|
1047
|
-
"kind": {
|
|
1048
|
-
"const": "story",
|
|
1049
|
-
"type": "string"
|
|
1050
|
-
},
|
|
1051
|
-
"storyType": {
|
|
1052
|
-
"const": "footnote",
|
|
1053
|
-
"type": "string"
|
|
1054
|
-
},
|
|
1055
|
-
"noteId": {
|
|
1056
|
-
"type": "string"
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
"required": [
|
|
1060
|
-
"kind",
|
|
1061
|
-
"storyType",
|
|
1062
|
-
"noteId"
|
|
1063
|
-
]
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
"type": "object",
|
|
1067
|
-
"properties": {
|
|
1068
|
-
"kind": {
|
|
1069
|
-
"const": "story",
|
|
1070
|
-
"type": "string"
|
|
1071
|
-
},
|
|
1072
|
-
"storyType": {
|
|
1073
|
-
"const": "endnote",
|
|
1074
|
-
"type": "string"
|
|
1075
|
-
},
|
|
1076
|
-
"noteId": {
|
|
1077
|
-
"type": "string"
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
"required": [
|
|
1081
|
-
"kind",
|
|
1082
|
-
"storyType",
|
|
1083
|
-
"noteId"
|
|
1084
|
-
]
|
|
1085
|
-
}
|
|
1086
|
-
]
|
|
1087
|
-
},
|
|
1088
656
|
"inline": {
|
|
1089
657
|
"type": "object",
|
|
1090
658
|
"properties": {
|
|
@@ -1344,27 +912,15 @@
|
|
|
1344
912
|
"type": "boolean"
|
|
1345
913
|
}
|
|
1346
914
|
},
|
|
1347
|
-
"description": "Inline formatting properties to apply. Set a property to apply it, use null to clear it. Example: {bold: true, italic: true} or {bold: null} to remove bold."
|
|
915
|
+
"description": "Inline formatting properties to apply. Set a property to apply it, use null to clear it. Example: {bold: true, italic: true} or {bold: null} to remove bold. Only for action 'inline'. Omit for other actions."
|
|
1348
916
|
},
|
|
1349
917
|
"ref": {
|
|
1350
918
|
"type": "string",
|
|
1351
|
-
"description": "Handle ref string from a superdoc_search result. Pass the handle.ref value directly (e.g. 'text:eyJ...'). Preferred over 'target' for inline formatting."
|
|
1352
|
-
},
|
|
1353
|
-
"blockId": {
|
|
1354
|
-
"type": "string",
|
|
1355
|
-
"description": "Block ID of the target paragraph."
|
|
1356
|
-
},
|
|
1357
|
-
"start": {
|
|
1358
|
-
"type": "number",
|
|
1359
|
-
"description": "Start offset within the block (character index)."
|
|
1360
|
-
},
|
|
1361
|
-
"end": {
|
|
1362
|
-
"type": "number",
|
|
1363
|
-
"description": "End offset within the block (character index)."
|
|
919
|
+
"description": "Handle ref string from a superdoc_search result. Pass the handle.ref value directly (e.g. 'text:eyJ...'). Preferred over 'target' for inline formatting. Only for action 'inline'. Omit for other actions."
|
|
1364
920
|
},
|
|
1365
921
|
"styleId": {
|
|
1366
922
|
"type": "string",
|
|
1367
|
-
"description": "Required for action 'set_style'."
|
|
923
|
+
"description": "Named paragraph style ID (e.g. 'Normal', 'Heading1', 'BodyText'). Use superdoc_search to find a nearby paragraph, then inspect its style to determine the correct styleId. Required for action 'set_style'."
|
|
1368
924
|
},
|
|
1369
925
|
"alignment": {
|
|
1370
926
|
"type": "string",
|
|
@@ -1378,35 +934,35 @@
|
|
|
1378
934
|
},
|
|
1379
935
|
"left": {
|
|
1380
936
|
"type": "number",
|
|
1381
|
-
"description": "Left indentation in twips (1440 = 1 inch)."
|
|
937
|
+
"description": "Left indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1382
938
|
},
|
|
1383
939
|
"right": {
|
|
1384
940
|
"type": "number",
|
|
1385
|
-
"description": "Right indentation in twips (1440 = 1 inch)."
|
|
941
|
+
"description": "Right indentation in twips (1440 = 1 inch). Only for action 'set_indentation'. Omit for other actions."
|
|
1386
942
|
},
|
|
1387
943
|
"firstLine": {
|
|
1388
944
|
"type": "number",
|
|
1389
|
-
"description": "First line indent in twips. Cannot be combined with hanging."
|
|
945
|
+
"description": "First line indent in twips. Cannot be combined with hanging. Only for action 'set_indentation'. Omit for other actions."
|
|
1390
946
|
},
|
|
1391
947
|
"hanging": {
|
|
1392
948
|
"type": "number",
|
|
1393
|
-
"description": "Hanging indent in twips. Cannot be combined with firstLine."
|
|
949
|
+
"description": "Hanging indent in twips. Cannot be combined with firstLine. Only for action 'set_indentation'. Omit for other actions."
|
|
1394
950
|
},
|
|
1395
951
|
"before": {
|
|
1396
952
|
"type": "number",
|
|
1397
|
-
"description": "Space before paragraph in twips (20 twips = 1pt)."
|
|
953
|
+
"description": "Space before paragraph in twips (20 twips = 1pt). Only for action 'set_spacing'. Omit for other actions."
|
|
1398
954
|
},
|
|
1399
955
|
"after": {
|
|
1400
956
|
"type": "number",
|
|
1401
|
-
"description": "Space after paragraph in twips (20 twips = 1pt)."
|
|
957
|
+
"description": "Space after paragraph in twips (20 twips = 1pt). Only for action 'set_spacing'. Omit for other actions."
|
|
1402
958
|
},
|
|
1403
959
|
"line": {
|
|
1404
960
|
"type": "number",
|
|
1405
|
-
"description": "Line spacing value. Meaning depends on lineRule. Must be provided together with lineRule."
|
|
961
|
+
"description": "Line spacing value. Meaning depends on lineRule. Must be provided together with lineRule. Only for action 'set_spacing'. Omit for other actions."
|
|
1406
962
|
},
|
|
1407
963
|
"lineRule": {
|
|
1408
964
|
"type": "string",
|
|
1409
|
-
"description": "Line spacing rule. Required when 'line' is set.",
|
|
965
|
+
"description": "Line spacing rule. Required when 'line' is set. Only for action 'set_spacing'. Omit for other actions.",
|
|
1410
966
|
"enum": [
|
|
1411
967
|
"auto",
|
|
1412
968
|
"exact",
|
|
@@ -1426,7 +982,8 @@
|
|
|
1426
982
|
"enum": [
|
|
1427
983
|
"preserve",
|
|
1428
984
|
"matchDirection"
|
|
1429
|
-
]
|
|
985
|
+
],
|
|
986
|
+
"description": "Only for action 'set_direction'. Omit for other actions."
|
|
1430
987
|
}
|
|
1431
988
|
},
|
|
1432
989
|
"required": [
|
|
@@ -1492,187 +1049,33 @@
|
|
|
1492
1049
|
},
|
|
1493
1050
|
{
|
|
1494
1051
|
"toolName": "superdoc_create",
|
|
1495
|
-
"description": "Create
|
|
1052
|
+
"description": "Create one paragraph or heading per call. After creating, search for it and apply formatting (fontFamily, fontSize) from neighboring blocks. For multiple paragraphs, use superdoc_mutations with text.insert steps instead of calling create repeatedly.",
|
|
1496
1053
|
"inputSchema": {
|
|
1497
1054
|
"type": "object",
|
|
1498
1055
|
"properties": {
|
|
1499
1056
|
"action": {
|
|
1500
1057
|
"type": "string",
|
|
1501
|
-
"enum": [
|
|
1502
|
-
"heading",
|
|
1503
|
-
"paragraph"
|
|
1504
|
-
],
|
|
1505
|
-
"description": "The action to perform. One of: heading, paragraph."
|
|
1506
|
-
},
|
|
1507
|
-
"
|
|
1508
|
-
"type": "
|
|
1509
|
-
"description": "
|
|
1510
|
-
},
|
|
1511
|
-
"
|
|
1512
|
-
"type": "string",
|
|
1513
|
-
"
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
"description": "
|
|
1518
|
-
},
|
|
1519
|
-
"
|
|
1520
|
-
"type": "
|
|
1521
|
-
"
|
|
1522
|
-
"direct",
|
|
1523
|
-
"tracked"
|
|
1524
|
-
],
|
|
1525
|
-
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
1526
|
-
},
|
|
1527
|
-
"dryRun": {
|
|
1528
|
-
"type": "boolean",
|
|
1529
|
-
"description": "Preview the result without applying changes."
|
|
1530
|
-
},
|
|
1531
|
-
"in": {
|
|
1532
|
-
"oneOf": [
|
|
1533
|
-
{
|
|
1534
|
-
"type": "object",
|
|
1535
|
-
"properties": {
|
|
1536
|
-
"kind": {
|
|
1537
|
-
"const": "story",
|
|
1538
|
-
"type": "string"
|
|
1539
|
-
},
|
|
1540
|
-
"storyType": {
|
|
1541
|
-
"const": "body",
|
|
1542
|
-
"type": "string"
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
"required": [
|
|
1546
|
-
"kind",
|
|
1547
|
-
"storyType"
|
|
1548
|
-
]
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"type": "object",
|
|
1552
|
-
"properties": {
|
|
1553
|
-
"kind": {
|
|
1554
|
-
"const": "story",
|
|
1555
|
-
"type": "string"
|
|
1556
|
-
},
|
|
1557
|
-
"storyType": {
|
|
1558
|
-
"const": "headerFooterSlot",
|
|
1559
|
-
"type": "string"
|
|
1560
|
-
},
|
|
1561
|
-
"section": {
|
|
1562
|
-
"type": "object",
|
|
1563
|
-
"properties": {
|
|
1564
|
-
"kind": {
|
|
1565
|
-
"const": "section",
|
|
1566
|
-
"type": "string"
|
|
1567
|
-
},
|
|
1568
|
-
"sectionId": {
|
|
1569
|
-
"type": "string"
|
|
1570
|
-
}
|
|
1571
|
-
},
|
|
1572
|
-
"required": [
|
|
1573
|
-
"kind",
|
|
1574
|
-
"sectionId"
|
|
1575
|
-
]
|
|
1576
|
-
},
|
|
1577
|
-
"headerFooterKind": {
|
|
1578
|
-
"enum": [
|
|
1579
|
-
"header",
|
|
1580
|
-
"footer"
|
|
1581
|
-
]
|
|
1582
|
-
},
|
|
1583
|
-
"variant": {
|
|
1584
|
-
"enum": [
|
|
1585
|
-
"default",
|
|
1586
|
-
"first",
|
|
1587
|
-
"even"
|
|
1588
|
-
]
|
|
1589
|
-
},
|
|
1590
|
-
"resolution": {
|
|
1591
|
-
"enum": [
|
|
1592
|
-
"effective",
|
|
1593
|
-
"explicit"
|
|
1594
|
-
]
|
|
1595
|
-
},
|
|
1596
|
-
"onWrite": {
|
|
1597
|
-
"enum": [
|
|
1598
|
-
"materializeIfInherited",
|
|
1599
|
-
"editResolvedPart",
|
|
1600
|
-
"error"
|
|
1601
|
-
]
|
|
1602
|
-
}
|
|
1603
|
-
},
|
|
1604
|
-
"required": [
|
|
1605
|
-
"kind",
|
|
1606
|
-
"storyType",
|
|
1607
|
-
"section",
|
|
1608
|
-
"headerFooterKind",
|
|
1609
|
-
"variant"
|
|
1610
|
-
]
|
|
1611
|
-
},
|
|
1612
|
-
{
|
|
1613
|
-
"type": "object",
|
|
1614
|
-
"properties": {
|
|
1615
|
-
"kind": {
|
|
1616
|
-
"const": "story",
|
|
1617
|
-
"type": "string"
|
|
1618
|
-
},
|
|
1619
|
-
"storyType": {
|
|
1620
|
-
"const": "headerFooterPart",
|
|
1621
|
-
"type": "string"
|
|
1622
|
-
},
|
|
1623
|
-
"refId": {
|
|
1624
|
-
"type": "string"
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
"required": [
|
|
1628
|
-
"kind",
|
|
1629
|
-
"storyType",
|
|
1630
|
-
"refId"
|
|
1631
|
-
]
|
|
1632
|
-
},
|
|
1633
|
-
{
|
|
1634
|
-
"type": "object",
|
|
1635
|
-
"properties": {
|
|
1636
|
-
"kind": {
|
|
1637
|
-
"const": "story",
|
|
1638
|
-
"type": "string"
|
|
1639
|
-
},
|
|
1640
|
-
"storyType": {
|
|
1641
|
-
"const": "footnote",
|
|
1642
|
-
"type": "string"
|
|
1643
|
-
},
|
|
1644
|
-
"noteId": {
|
|
1645
|
-
"type": "string"
|
|
1646
|
-
}
|
|
1647
|
-
},
|
|
1648
|
-
"required": [
|
|
1649
|
-
"kind",
|
|
1650
|
-
"storyType",
|
|
1651
|
-
"noteId"
|
|
1652
|
-
]
|
|
1653
|
-
},
|
|
1654
|
-
{
|
|
1655
|
-
"type": "object",
|
|
1656
|
-
"properties": {
|
|
1657
|
-
"kind": {
|
|
1658
|
-
"const": "story",
|
|
1659
|
-
"type": "string"
|
|
1660
|
-
},
|
|
1661
|
-
"storyType": {
|
|
1662
|
-
"const": "endnote",
|
|
1663
|
-
"type": "string"
|
|
1664
|
-
},
|
|
1665
|
-
"noteId": {
|
|
1666
|
-
"type": "string"
|
|
1667
|
-
}
|
|
1668
|
-
},
|
|
1669
|
-
"required": [
|
|
1670
|
-
"kind",
|
|
1671
|
-
"storyType",
|
|
1672
|
-
"noteId"
|
|
1673
|
-
]
|
|
1674
|
-
}
|
|
1675
|
-
]
|
|
1058
|
+
"enum": [
|
|
1059
|
+
"heading",
|
|
1060
|
+
"paragraph"
|
|
1061
|
+
],
|
|
1062
|
+
"description": "The action to perform. One of: heading, paragraph."
|
|
1063
|
+
},
|
|
1064
|
+
"force": {
|
|
1065
|
+
"type": "boolean",
|
|
1066
|
+
"description": "Bypass confirmation checks."
|
|
1067
|
+
},
|
|
1068
|
+
"changeMode": {
|
|
1069
|
+
"type": "string",
|
|
1070
|
+
"enum": [
|
|
1071
|
+
"direct",
|
|
1072
|
+
"tracked"
|
|
1073
|
+
],
|
|
1074
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
1075
|
+
},
|
|
1076
|
+
"dryRun": {
|
|
1077
|
+
"type": "boolean",
|
|
1078
|
+
"description": "Preview the result without applying changes."
|
|
1676
1079
|
},
|
|
1677
1080
|
"at": {
|
|
1678
1081
|
"oneOf": [
|
|
@@ -1791,7 +1194,7 @@
|
|
|
1791
1194
|
},
|
|
1792
1195
|
"text": {
|
|
1793
1196
|
"type": "string",
|
|
1794
|
-
"description": "Paragraph text content."
|
|
1197
|
+
"description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item — do NOT use newlines to put multiple items in one paragraph."
|
|
1795
1198
|
},
|
|
1796
1199
|
"input": {
|
|
1797
1200
|
"type": "object",
|
|
@@ -1841,14 +1244,6 @@
|
|
|
1841
1244
|
],
|
|
1842
1245
|
"description": "The action to perform. One of: create, detach, indent, insert, outdent, set_level, set_type."
|
|
1843
1246
|
},
|
|
1844
|
-
"doc": {
|
|
1845
|
-
"type": "string",
|
|
1846
|
-
"description": "Document path. Optional when a session is already open."
|
|
1847
|
-
},
|
|
1848
|
-
"sessionId": {
|
|
1849
|
-
"type": "string",
|
|
1850
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
1851
|
-
},
|
|
1852
1247
|
"force": {
|
|
1853
1248
|
"type": "boolean",
|
|
1854
1249
|
"description": "Bypass confirmation checks."
|
|
@@ -1897,7 +1292,7 @@
|
|
|
1897
1292
|
},
|
|
1898
1293
|
"text": {
|
|
1899
1294
|
"type": "string",
|
|
1900
|
-
"description": "Text content for the new list item."
|
|
1295
|
+
"description": "Text content for the new list item. Only for action 'insert'. Omit for other actions."
|
|
1901
1296
|
},
|
|
1902
1297
|
"input": {
|
|
1903
1298
|
"type": "object",
|
|
@@ -1909,7 +1304,7 @@
|
|
|
1909
1304
|
},
|
|
1910
1305
|
"mode": {
|
|
1911
1306
|
"type": "string",
|
|
1912
|
-
"description": "Required.
|
|
1307
|
+
"description": "Required. 'fromParagraphs' converts existing paragraphs into list items — each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'. Required for action 'create'.",
|
|
1913
1308
|
"enum": [
|
|
1914
1309
|
"empty",
|
|
1915
1310
|
"fromParagraphs"
|
|
@@ -1935,7 +1330,7 @@
|
|
|
1935
1330
|
"nodeType",
|
|
1936
1331
|
"nodeId"
|
|
1937
1332
|
],
|
|
1938
|
-
"description": "Required when mode is 'empty'. The paragraph to create the list at. Format: {kind:'block', nodeType:'paragraph', nodeId:'<id>'}."
|
|
1333
|
+
"description": "Required when mode is 'empty'. The paragraph to create the list at. Format: {kind:'block', nodeType:'paragraph', nodeId:'<id>'}. Only for action 'create'. Omit for other actions."
|
|
1939
1334
|
},
|
|
1940
1335
|
"kind": {
|
|
1941
1336
|
"type": "string",
|
|
@@ -1951,7 +1346,7 @@
|
|
|
1951
1346
|
},
|
|
1952
1347
|
"preset": {
|
|
1953
1348
|
"type": "string",
|
|
1954
|
-
"description": "Predefined list style preset. Overrides 'kind' with a specific numbering or bullet format.",
|
|
1349
|
+
"description": "Predefined list style preset. Overrides 'kind' with a specific numbering or bullet format. Only for action 'create'. Omit for other actions.",
|
|
1955
1350
|
"enum": [
|
|
1956
1351
|
"decimal",
|
|
1957
1352
|
"decimalParenthesis",
|
|
@@ -2034,7 +1429,8 @@
|
|
|
2034
1429
|
"required": [
|
|
2035
1430
|
"version",
|
|
2036
1431
|
"levels"
|
|
2037
|
-
]
|
|
1432
|
+
],
|
|
1433
|
+
"description": "Only for action 'create'. Omit for other actions."
|
|
2038
1434
|
},
|
|
2039
1435
|
"sequence": {
|
|
2040
1436
|
"oneOf": [
|
|
@@ -2065,11 +1461,12 @@
|
|
|
2065
1461
|
"mode"
|
|
2066
1462
|
]
|
|
2067
1463
|
}
|
|
2068
|
-
]
|
|
1464
|
+
],
|
|
1465
|
+
"description": "Only for action 'create'. Omit for other actions."
|
|
2069
1466
|
},
|
|
2070
1467
|
"continuity": {
|
|
2071
1468
|
"type": "string",
|
|
2072
|
-
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts.",
|
|
1469
|
+
"description": "Numbering continuity: 'preserve' keeps numbering; 'none' restarts. Only for action 'set_type'. Omit for other actions.",
|
|
2073
1470
|
"enum": [
|
|
2074
1471
|
"preserve",
|
|
2075
1472
|
"none"
|
|
@@ -2154,14 +1551,6 @@
|
|
|
2154
1551
|
],
|
|
2155
1552
|
"description": "The action to perform. One of: create, delete, get, list, update."
|
|
2156
1553
|
},
|
|
2157
|
-
"doc": {
|
|
2158
|
-
"type": "string",
|
|
2159
|
-
"description": "Document path. Optional when a session is already open."
|
|
2160
|
-
},
|
|
2161
|
-
"sessionId": {
|
|
2162
|
-
"type": "string",
|
|
2163
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
2164
|
-
},
|
|
2165
1554
|
"force": {
|
|
2166
1555
|
"type": "boolean",
|
|
2167
1556
|
"description": "Bypass confirmation checks."
|
|
@@ -2209,23 +1598,11 @@
|
|
|
2209
1598
|
"blockId",
|
|
2210
1599
|
"range"
|
|
2211
1600
|
],
|
|
2212
|
-
"description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}."
|
|
1601
|
+
"description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
|
|
2213
1602
|
},
|
|
2214
1603
|
"parentId": {
|
|
2215
1604
|
"type": "string",
|
|
2216
|
-
"description": "Parent comment ID for creating a threaded reply."
|
|
2217
|
-
},
|
|
2218
|
-
"blockId": {
|
|
2219
|
-
"type": "string",
|
|
2220
|
-
"description": "Block ID of the target paragraph."
|
|
2221
|
-
},
|
|
2222
|
-
"start": {
|
|
2223
|
-
"type": "number",
|
|
2224
|
-
"description": "Start offset within the block (character index)."
|
|
2225
|
-
},
|
|
2226
|
-
"end": {
|
|
2227
|
-
"type": "number",
|
|
2228
|
-
"description": "End offset within the block (character index)."
|
|
1605
|
+
"description": "Parent comment ID for creating a threaded reply. Only for action 'create'. Omit for other actions."
|
|
2229
1606
|
},
|
|
2230
1607
|
"id": {
|
|
2231
1608
|
"type": "string",
|
|
@@ -2233,26 +1610,26 @@
|
|
|
2233
1610
|
},
|
|
2234
1611
|
"status": {
|
|
2235
1612
|
"type": "string",
|
|
2236
|
-
"description": "Set comment status. Use 'resolved' to mark as resolved.",
|
|
1613
|
+
"description": "Set comment status. Use 'resolved' to mark as resolved. Only for action 'update'. Omit for other actions.",
|
|
2237
1614
|
"enum": [
|
|
2238
1615
|
"resolved"
|
|
2239
1616
|
]
|
|
2240
1617
|
},
|
|
2241
1618
|
"isInternal": {
|
|
2242
1619
|
"type": "boolean",
|
|
2243
|
-
"description": "When true, marks the comment as internal (hidden from external collaborators)."
|
|
1620
|
+
"description": "When true, marks the comment as internal (hidden from external collaborators). Only for action 'update'. Omit for other actions."
|
|
2244
1621
|
},
|
|
2245
1622
|
"includeResolved": {
|
|
2246
1623
|
"type": "boolean",
|
|
2247
|
-
"description": "When true, includes resolved comments in results. Default: false."
|
|
1624
|
+
"description": "When true, includes resolved comments in results. Default: false. Only for action 'list'. Omit for other actions."
|
|
2248
1625
|
},
|
|
2249
1626
|
"limit": {
|
|
2250
1627
|
"type": "number",
|
|
2251
|
-
"description": "Maximum number of comments to return."
|
|
1628
|
+
"description": "Maximum number of comments to return. Only for action 'list'. Omit for other actions."
|
|
2252
1629
|
},
|
|
2253
1630
|
"offset": {
|
|
2254
1631
|
"type": "number",
|
|
2255
|
-
"description": "Number of comments to skip for pagination."
|
|
1632
|
+
"description": "Number of comments to skip for pagination. Only for action 'list'. Omit for other actions."
|
|
2256
1633
|
}
|
|
2257
1634
|
},
|
|
2258
1635
|
"required": [
|
|
@@ -2307,25 +1684,17 @@
|
|
|
2307
1684
|
],
|
|
2308
1685
|
"description": "The action to perform. One of: decide, list."
|
|
2309
1686
|
},
|
|
2310
|
-
"doc": {
|
|
2311
|
-
"type": "string",
|
|
2312
|
-
"description": "Document path. Optional when a session is already open."
|
|
2313
|
-
},
|
|
2314
|
-
"sessionId": {
|
|
2315
|
-
"type": "string",
|
|
2316
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
2317
|
-
},
|
|
2318
1687
|
"limit": {
|
|
2319
1688
|
"type": "number",
|
|
2320
|
-
"description": "Maximum number of tracked changes to return."
|
|
1689
|
+
"description": "Maximum number of tracked changes to return. Only for action 'list'. Omit for other actions."
|
|
2321
1690
|
},
|
|
2322
1691
|
"offset": {
|
|
2323
1692
|
"type": "number",
|
|
2324
|
-
"description": "Number of tracked changes to skip for pagination."
|
|
1693
|
+
"description": "Number of tracked changes to skip for pagination. Only for action 'list'. Omit for other actions."
|
|
2325
1694
|
},
|
|
2326
1695
|
"type": {
|
|
2327
1696
|
"type": "string",
|
|
2328
|
-
"description": "Filter by change type: 'insert', 'delete', or 'format'.",
|
|
1697
|
+
"description": "Filter by change type: 'insert', 'delete', or 'format'. Only for action 'list'. Omit for other actions.",
|
|
2329
1698
|
"enum": [
|
|
2330
1699
|
"insert",
|
|
2331
1700
|
"delete",
|
|
@@ -2334,7 +1703,7 @@
|
|
|
2334
1703
|
},
|
|
2335
1704
|
"force": {
|
|
2336
1705
|
"type": "boolean",
|
|
2337
|
-
"description": "Bypass confirmation checks."
|
|
1706
|
+
"description": "Bypass confirmation checks. Only for action 'decide'. Omit for other actions."
|
|
2338
1707
|
},
|
|
2339
1708
|
"changeMode": {
|
|
2340
1709
|
"type": "string",
|
|
@@ -2342,7 +1711,7 @@
|
|
|
2342
1711
|
"direct",
|
|
2343
1712
|
"tracked"
|
|
2344
1713
|
],
|
|
2345
|
-
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
1714
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions. Only for action 'decide'. Omit for other actions."
|
|
2346
1715
|
},
|
|
2347
1716
|
"decision": {
|
|
2348
1717
|
"type": "string",
|
|
@@ -2409,160 +1778,6 @@
|
|
|
2409
1778
|
"inputSchema": {
|
|
2410
1779
|
"type": "object",
|
|
2411
1780
|
"properties": {
|
|
2412
|
-
"doc": {
|
|
2413
|
-
"type": "string",
|
|
2414
|
-
"description": "Document path. Optional when a session is already open."
|
|
2415
|
-
},
|
|
2416
|
-
"sessionId": {
|
|
2417
|
-
"type": "string",
|
|
2418
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
2419
|
-
},
|
|
2420
|
-
"in": {
|
|
2421
|
-
"oneOf": [
|
|
2422
|
-
{
|
|
2423
|
-
"type": "object",
|
|
2424
|
-
"properties": {
|
|
2425
|
-
"kind": {
|
|
2426
|
-
"const": "story",
|
|
2427
|
-
"type": "string"
|
|
2428
|
-
},
|
|
2429
|
-
"storyType": {
|
|
2430
|
-
"const": "body",
|
|
2431
|
-
"type": "string"
|
|
2432
|
-
}
|
|
2433
|
-
},
|
|
2434
|
-
"required": [
|
|
2435
|
-
"kind",
|
|
2436
|
-
"storyType"
|
|
2437
|
-
]
|
|
2438
|
-
},
|
|
2439
|
-
{
|
|
2440
|
-
"type": "object",
|
|
2441
|
-
"properties": {
|
|
2442
|
-
"kind": {
|
|
2443
|
-
"const": "story",
|
|
2444
|
-
"type": "string"
|
|
2445
|
-
},
|
|
2446
|
-
"storyType": {
|
|
2447
|
-
"const": "headerFooterSlot",
|
|
2448
|
-
"type": "string"
|
|
2449
|
-
},
|
|
2450
|
-
"section": {
|
|
2451
|
-
"type": "object",
|
|
2452
|
-
"properties": {
|
|
2453
|
-
"kind": {
|
|
2454
|
-
"const": "section",
|
|
2455
|
-
"type": "string"
|
|
2456
|
-
},
|
|
2457
|
-
"sectionId": {
|
|
2458
|
-
"type": "string"
|
|
2459
|
-
}
|
|
2460
|
-
},
|
|
2461
|
-
"required": [
|
|
2462
|
-
"kind",
|
|
2463
|
-
"sectionId"
|
|
2464
|
-
]
|
|
2465
|
-
},
|
|
2466
|
-
"headerFooterKind": {
|
|
2467
|
-
"enum": [
|
|
2468
|
-
"header",
|
|
2469
|
-
"footer"
|
|
2470
|
-
]
|
|
2471
|
-
},
|
|
2472
|
-
"variant": {
|
|
2473
|
-
"enum": [
|
|
2474
|
-
"default",
|
|
2475
|
-
"first",
|
|
2476
|
-
"even"
|
|
2477
|
-
]
|
|
2478
|
-
},
|
|
2479
|
-
"resolution": {
|
|
2480
|
-
"enum": [
|
|
2481
|
-
"effective",
|
|
2482
|
-
"explicit"
|
|
2483
|
-
]
|
|
2484
|
-
},
|
|
2485
|
-
"onWrite": {
|
|
2486
|
-
"enum": [
|
|
2487
|
-
"materializeIfInherited",
|
|
2488
|
-
"editResolvedPart",
|
|
2489
|
-
"error"
|
|
2490
|
-
]
|
|
2491
|
-
}
|
|
2492
|
-
},
|
|
2493
|
-
"required": [
|
|
2494
|
-
"kind",
|
|
2495
|
-
"storyType",
|
|
2496
|
-
"section",
|
|
2497
|
-
"headerFooterKind",
|
|
2498
|
-
"variant"
|
|
2499
|
-
]
|
|
2500
|
-
},
|
|
2501
|
-
{
|
|
2502
|
-
"type": "object",
|
|
2503
|
-
"properties": {
|
|
2504
|
-
"kind": {
|
|
2505
|
-
"const": "story",
|
|
2506
|
-
"type": "string"
|
|
2507
|
-
},
|
|
2508
|
-
"storyType": {
|
|
2509
|
-
"const": "headerFooterPart",
|
|
2510
|
-
"type": "string"
|
|
2511
|
-
},
|
|
2512
|
-
"refId": {
|
|
2513
|
-
"type": "string"
|
|
2514
|
-
}
|
|
2515
|
-
},
|
|
2516
|
-
"required": [
|
|
2517
|
-
"kind",
|
|
2518
|
-
"storyType",
|
|
2519
|
-
"refId"
|
|
2520
|
-
]
|
|
2521
|
-
},
|
|
2522
|
-
{
|
|
2523
|
-
"type": "object",
|
|
2524
|
-
"properties": {
|
|
2525
|
-
"kind": {
|
|
2526
|
-
"const": "story",
|
|
2527
|
-
"type": "string"
|
|
2528
|
-
},
|
|
2529
|
-
"storyType": {
|
|
2530
|
-
"const": "footnote",
|
|
2531
|
-
"type": "string"
|
|
2532
|
-
},
|
|
2533
|
-
"noteId": {
|
|
2534
|
-
"type": "string"
|
|
2535
|
-
}
|
|
2536
|
-
},
|
|
2537
|
-
"required": [
|
|
2538
|
-
"kind",
|
|
2539
|
-
"storyType",
|
|
2540
|
-
"noteId"
|
|
2541
|
-
]
|
|
2542
|
-
},
|
|
2543
|
-
{
|
|
2544
|
-
"type": "object",
|
|
2545
|
-
"properties": {
|
|
2546
|
-
"kind": {
|
|
2547
|
-
"const": "story",
|
|
2548
|
-
"type": "string"
|
|
2549
|
-
},
|
|
2550
|
-
"storyType": {
|
|
2551
|
-
"const": "endnote",
|
|
2552
|
-
"type": "string"
|
|
2553
|
-
},
|
|
2554
|
-
"noteId": {
|
|
2555
|
-
"type": "string"
|
|
2556
|
-
}
|
|
2557
|
-
},
|
|
2558
|
-
"required": [
|
|
2559
|
-
"kind",
|
|
2560
|
-
"storyType",
|
|
2561
|
-
"noteId"
|
|
2562
|
-
]
|
|
2563
|
-
}
|
|
2564
|
-
]
|
|
2565
|
-
},
|
|
2566
1781
|
"select": {
|
|
2567
1782
|
"oneOf": [
|
|
2568
1783
|
{
|
|
@@ -2736,163 +1951,9 @@
|
|
|
2736
1951
|
],
|
|
2737
1952
|
"description": "The action to perform. One of: apply, preview."
|
|
2738
1953
|
},
|
|
2739
|
-
"doc": {
|
|
2740
|
-
"type": "string",
|
|
2741
|
-
"description": "Document path. Optional when a session is already open."
|
|
2742
|
-
},
|
|
2743
|
-
"sessionId": {
|
|
2744
|
-
"type": "string",
|
|
2745
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
2746
|
-
},
|
|
2747
|
-
"in": {
|
|
2748
|
-
"oneOf": [
|
|
2749
|
-
{
|
|
2750
|
-
"type": "object",
|
|
2751
|
-
"properties": {
|
|
2752
|
-
"kind": {
|
|
2753
|
-
"const": "story",
|
|
2754
|
-
"type": "string"
|
|
2755
|
-
},
|
|
2756
|
-
"storyType": {
|
|
2757
|
-
"const": "body",
|
|
2758
|
-
"type": "string"
|
|
2759
|
-
}
|
|
2760
|
-
},
|
|
2761
|
-
"required": [
|
|
2762
|
-
"kind",
|
|
2763
|
-
"storyType"
|
|
2764
|
-
]
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
"type": "object",
|
|
2768
|
-
"properties": {
|
|
2769
|
-
"kind": {
|
|
2770
|
-
"const": "story",
|
|
2771
|
-
"type": "string"
|
|
2772
|
-
},
|
|
2773
|
-
"storyType": {
|
|
2774
|
-
"const": "headerFooterSlot",
|
|
2775
|
-
"type": "string"
|
|
2776
|
-
},
|
|
2777
|
-
"section": {
|
|
2778
|
-
"type": "object",
|
|
2779
|
-
"properties": {
|
|
2780
|
-
"kind": {
|
|
2781
|
-
"const": "section",
|
|
2782
|
-
"type": "string"
|
|
2783
|
-
},
|
|
2784
|
-
"sectionId": {
|
|
2785
|
-
"type": "string"
|
|
2786
|
-
}
|
|
2787
|
-
},
|
|
2788
|
-
"required": [
|
|
2789
|
-
"kind",
|
|
2790
|
-
"sectionId"
|
|
2791
|
-
]
|
|
2792
|
-
},
|
|
2793
|
-
"headerFooterKind": {
|
|
2794
|
-
"enum": [
|
|
2795
|
-
"header",
|
|
2796
|
-
"footer"
|
|
2797
|
-
]
|
|
2798
|
-
},
|
|
2799
|
-
"variant": {
|
|
2800
|
-
"enum": [
|
|
2801
|
-
"default",
|
|
2802
|
-
"first",
|
|
2803
|
-
"even"
|
|
2804
|
-
]
|
|
2805
|
-
},
|
|
2806
|
-
"resolution": {
|
|
2807
|
-
"enum": [
|
|
2808
|
-
"effective",
|
|
2809
|
-
"explicit"
|
|
2810
|
-
]
|
|
2811
|
-
},
|
|
2812
|
-
"onWrite": {
|
|
2813
|
-
"enum": [
|
|
2814
|
-
"materializeIfInherited",
|
|
2815
|
-
"editResolvedPart",
|
|
2816
|
-
"error"
|
|
2817
|
-
]
|
|
2818
|
-
}
|
|
2819
|
-
},
|
|
2820
|
-
"required": [
|
|
2821
|
-
"kind",
|
|
2822
|
-
"storyType",
|
|
2823
|
-
"section",
|
|
2824
|
-
"headerFooterKind",
|
|
2825
|
-
"variant"
|
|
2826
|
-
]
|
|
2827
|
-
},
|
|
2828
|
-
{
|
|
2829
|
-
"type": "object",
|
|
2830
|
-
"properties": {
|
|
2831
|
-
"kind": {
|
|
2832
|
-
"const": "story",
|
|
2833
|
-
"type": "string"
|
|
2834
|
-
},
|
|
2835
|
-
"storyType": {
|
|
2836
|
-
"const": "headerFooterPart",
|
|
2837
|
-
"type": "string"
|
|
2838
|
-
},
|
|
2839
|
-
"refId": {
|
|
2840
|
-
"type": "string"
|
|
2841
|
-
}
|
|
2842
|
-
},
|
|
2843
|
-
"required": [
|
|
2844
|
-
"kind",
|
|
2845
|
-
"storyType",
|
|
2846
|
-
"refId"
|
|
2847
|
-
]
|
|
2848
|
-
},
|
|
2849
|
-
{
|
|
2850
|
-
"type": "object",
|
|
2851
|
-
"properties": {
|
|
2852
|
-
"kind": {
|
|
2853
|
-
"const": "story",
|
|
2854
|
-
"type": "string"
|
|
2855
|
-
},
|
|
2856
|
-
"storyType": {
|
|
2857
|
-
"const": "footnote",
|
|
2858
|
-
"type": "string"
|
|
2859
|
-
},
|
|
2860
|
-
"noteId": {
|
|
2861
|
-
"type": "string"
|
|
2862
|
-
}
|
|
2863
|
-
},
|
|
2864
|
-
"required": [
|
|
2865
|
-
"kind",
|
|
2866
|
-
"storyType",
|
|
2867
|
-
"noteId"
|
|
2868
|
-
]
|
|
2869
|
-
},
|
|
2870
|
-
{
|
|
2871
|
-
"type": "object",
|
|
2872
|
-
"properties": {
|
|
2873
|
-
"kind": {
|
|
2874
|
-
"const": "story",
|
|
2875
|
-
"type": "string"
|
|
2876
|
-
},
|
|
2877
|
-
"storyType": {
|
|
2878
|
-
"const": "endnote",
|
|
2879
|
-
"type": "string"
|
|
2880
|
-
},
|
|
2881
|
-
"noteId": {
|
|
2882
|
-
"type": "string"
|
|
2883
|
-
}
|
|
2884
|
-
},
|
|
2885
|
-
"required": [
|
|
2886
|
-
"kind",
|
|
2887
|
-
"storyType",
|
|
2888
|
-
"noteId"
|
|
2889
|
-
]
|
|
2890
|
-
}
|
|
2891
|
-
]
|
|
2892
|
-
},
|
|
2893
1954
|
"expectedRevision": {
|
|
2894
1955
|
"type": "string",
|
|
2895
|
-
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision."
|
|
1956
|
+
"description": "Document revision for optimistic concurrency. Mutation fails if document was modified since this revision. Only for action 'preview'. Omit for other actions."
|
|
2896
1957
|
},
|
|
2897
1958
|
"atomic": {
|
|
2898
1959
|
"type": "boolean",
|
|
@@ -4815,7 +3876,7 @@
|
|
|
4815
3876
|
},
|
|
4816
3877
|
"force": {
|
|
4817
3878
|
"type": "boolean",
|
|
4818
|
-
"description": "Bypass confirmation checks."
|
|
3879
|
+
"description": "Bypass confirmation checks. Only for action 'apply'. Omit for other actions."
|
|
4819
3880
|
}
|
|
4820
3881
|
},
|
|
4821
3882
|
"required": [
|