@tiwater/office-mcp 0.15.13 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/office/README.md +3 -14
  2. package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +1 -507
  3. package/office/index.mjs +16 -54
  4. package/package.json +1 -1
  5. package/office/contracts/docx_apply_font_policy.schema.json +0 -77
  6. package/office/contracts/docx_apply_toc_style_policy.schema.json +0 -53
  7. package/office/contracts/docx_collapse_trailing_empty_paragraphs.schema.json +0 -30
  8. package/office/contracts/docx_collapse_trailing_empty_section.schema.json +0 -30
  9. package/office/contracts/docx_delete_body_drawing_before_paragraph.schema.json +0 -54
  10. package/office/contracts/docx_delete_body_paragraph.schema.json +0 -54
  11. package/office/contracts/docx_delete_body_range.schema.json +0 -69
  12. package/office/contracts/docx_delete_comments.schema.json +0 -52
  13. package/office/contracts/docx_delete_table_rows.schema.json +0 -61
  14. package/office/contracts/docx_freeze_fields.schema.json +0 -30
  15. package/office/contracts/docx_insert_body_image.schema.json +0 -70
  16. package/office/contracts/docx_insert_body_range.schema.json +0 -67
  17. package/office/contracts/docx_insert_table_columns.schema.json +0 -65
  18. package/office/contracts/docx_insert_table_rows.schema.json +0 -140
  19. package/office/contracts/docx_mark_fields_dirty.schema.json +0 -30
  20. package/office/contracts/docx_replace_body_text.schema.json +0 -52
  21. package/office/contracts/docx_replace_drawing_image.schema.json +0 -61
  22. package/office/contracts/docx_replace_header_text.schema.json +0 -52
  23. package/office/contracts/docx_replace_table_rows.schema.json +0 -149
  24. package/office/contracts/docx_sanitize_fields.schema.json +0 -30
  25. package/office/contracts/docx_set_anchored_text.schema.json +0 -52
  26. package/office/contracts/docx_set_body_paragraph_keep_lines.schema.json +0 -53
  27. package/office/contracts/docx_set_body_paragraph_keep_next.schema.json +0 -53
  28. package/office/contracts/docx_set_footer_paragraph_text.schema.json +0 -59
  29. package/office/contracts/docx_set_footer_run_text.schema.json +0 -65
  30. package/office/contracts/docx_set_footer_table_cell_run_text.schema.json +0 -83
  31. package/office/contracts/docx_set_footer_table_cell_text.schema.json +0 -71
  32. package/office/contracts/docx_set_header_paragraph_font_size.schema.json +0 -60
  33. package/office/contracts/docx_set_header_paragraph_text.schema.json +0 -59
  34. package/office/contracts/docx_set_header_run_text.schema.json +0 -65
  35. package/office/contracts/docx_set_header_table_cell_run_text.schema.json +0 -83
  36. package/office/contracts/docx_set_header_table_cell_text.schema.json +0 -71
  37. package/office/contracts/docx_set_paragraph_run_text.schema.json +0 -59
  38. package/office/contracts/docx_set_paragraph_text.schema.json +0 -53
  39. package/office/contracts/docx_set_table_cell_alignment.schema.json +0 -66
  40. package/office/contracts/docx_set_table_cell_font_size.schema.json +0 -66
  41. package/office/contracts/docx_set_table_cell_no_wrap.schema.json +0 -65
  42. package/office/contracts/docx_set_table_cell_rich_text.schema.json +0 -100
  43. package/office/contracts/docx_set_table_cell_run_text.schema.json +0 -77
  44. package/office/contracts/docx_set_table_cell_text.schema.json +0 -68
  45. package/office/contracts/docx_set_table_row_cant_split.schema.json +0 -59
  46. package/office/contracts/docx_set_table_row_height.schema.json +0 -63
  47. package/office/contracts/docx_set_table_row_keep_next.schema.json +0 -59
  48. package/office/contracts/docx_set_table_row_repeat_as_header.schema.json +0 -123
  49. package/office/contracts/docx_set_table_width.schema.json +0 -64
  50. package/office/contracts/docx_start_section.schema.json +0 -56
@@ -1,70 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "targetBodyIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "image": {
35
- "type": "string",
36
- "minLength": 1,
37
- "x-tiwater-file-role": "read"
38
- },
39
- "widthEmu": {
40
- "type": "integer",
41
- "exclusiveMinimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "heightEmu": {
45
- "type": "integer",
46
- "exclusiveMinimum": 0,
47
- "maximum": 9007199254740991
48
- },
49
- "altText": {
50
- "type": "string"
51
- }
52
- },
53
- "required": [
54
- "targetBodyIndex",
55
- "image",
56
- "widthEmu",
57
- "heightEmu"
58
- ],
59
- "additionalProperties": false
60
- }
61
- }
62
- },
63
- "required": [
64
- "input",
65
- "output",
66
- "receiptOutput",
67
- "changes"
68
- ],
69
- "additionalProperties": false
70
- }
@@ -1,67 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "source": {
30
- "type": "string",
31
- "minLength": 1,
32
- "x-tiwater-file-role": "read"
33
- },
34
- "sourceStartBodyIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "sourceEndBodyIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "targetBodyIndex": {
45
- "type": "integer",
46
- "minimum": 0,
47
- "maximum": 9007199254740991
48
- }
49
- },
50
- "required": [
51
- "source",
52
- "sourceStartBodyIndex",
53
- "sourceEndBodyIndex",
54
- "targetBodyIndex"
55
- ],
56
- "additionalProperties": false
57
- }
58
- }
59
- },
60
- "required": [
61
- "input",
62
- "output",
63
- "receiptOutput",
64
- "changes"
65
- ],
66
- "additionalProperties": false
67
- }
@@ -1,65 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "columnIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "columnCount": {
40
- "type": "integer",
41
- "exclusiveMinimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "templateColumnIndex": {
45
- "type": "integer",
46
- "minimum": 0,
47
- "maximum": 9007199254740991
48
- }
49
- },
50
- "required": [
51
- "tableIndex",
52
- "columnIndex"
53
- ],
54
- "additionalProperties": false
55
- }
56
- }
57
- },
58
- "required": [
59
- "input",
60
- "output",
61
- "receiptOutput",
62
- "changes"
63
- ],
64
- "additionalProperties": false
65
- }
@@ -1,140 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "rowIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "templateRowIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "rows": {
45
- "type": "array",
46
- "items": {
47
- "type": "array",
48
- "items": {
49
- "type": "object",
50
- "properties": {
51
- "text": {
52
- "type": "string"
53
- },
54
- "gridSpan": {
55
- "type": "integer",
56
- "exclusiveMinimum": 0,
57
- "maximum": 9007199254740991
58
- },
59
- "vMerge": {
60
- "type": "string",
61
- "enum": [
62
- "restart",
63
- "continue",
64
- "none"
65
- ],
66
- "description": "Vertical merge state for this cell. Use none to clear a merge inherited from the template row."
67
- },
68
- "bold": {
69
- "type": "boolean"
70
- },
71
- "header": {
72
- "type": "boolean"
73
- },
74
- "shading": {
75
- "type": "string"
76
- },
77
- "alignment": {
78
- "type": "string"
79
- },
80
- "richText": {
81
- "type": "array",
82
- "items": {
83
- "type": "object",
84
- "properties": {
85
- "text": {
86
- "type": "string"
87
- },
88
- "color": {
89
- "type": "string"
90
- },
91
- "underline": {
92
- "type": "boolean"
93
- },
94
- "bold": {
95
- "type": "boolean"
96
- },
97
- "fontName": {
98
- "type": "string"
99
- },
100
- "italic": {
101
- "type": "boolean"
102
- },
103
- "verticalAlignment": {
104
- "type": "string",
105
- "enum": [
106
- "baseline",
107
- "superscript",
108
- "subscript"
109
- ]
110
- }
111
- },
112
- "required": [
113
- "text"
114
- ],
115
- "additionalProperties": false
116
- }
117
- }
118
- },
119
- "additionalProperties": false
120
- }
121
- }
122
- }
123
- },
124
- "required": [
125
- "tableIndex",
126
- "rowIndex",
127
- "rows"
128
- ],
129
- "additionalProperties": false
130
- }
131
- }
132
- },
133
- "required": [
134
- "input",
135
- "output",
136
- "receiptOutput",
137
- "changes"
138
- ],
139
- "additionalProperties": false
140
- }
@@ -1,30 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- }
23
- },
24
- "required": [
25
- "input",
26
- "output",
27
- "receiptOutput"
28
- ],
29
- "additionalProperties": false
30
- }
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "findText": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "text": {
34
- "type": "string"
35
- }
36
- },
37
- "required": [
38
- "findText",
39
- "text"
40
- ],
41
- "additionalProperties": false
42
- }
43
- }
44
- },
45
- "required": [
46
- "input",
47
- "output",
48
- "receiptOutput",
49
- "changes"
50
- ],
51
- "additionalProperties": false
52
- }
@@ -1,61 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "paragraphIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "drawingIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "image": {
40
- "type": "string",
41
- "minLength": 1,
42
- "x-tiwater-file-role": "read"
43
- }
44
- },
45
- "required": [
46
- "paragraphIndex",
47
- "drawingIndex",
48
- "image"
49
- ],
50
- "additionalProperties": false
51
- }
52
- }
53
- },
54
- "required": [
55
- "input",
56
- "output",
57
- "receiptOutput",
58
- "changes"
59
- ],
60
- "additionalProperties": false
61
- }
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "findText": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "text": {
34
- "type": "string"
35
- }
36
- },
37
- "required": [
38
- "findText",
39
- "text"
40
- ],
41
- "additionalProperties": false
42
- }
43
- }
44
- },
45
- "required": [
46
- "input",
47
- "output",
48
- "receiptOutput",
49
- "changes"
50
- ],
51
- "additionalProperties": false
52
- }
@@ -1,149 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "input": {
6
- "type": "string",
7
- "minLength": 1,
8
- "x-tiwater-file-role": "read"
9
- },
10
- "output": {
11
- "type": "string",
12
- "minLength": 1,
13
- "description": "New document output path. Existing files are never overwritten.",
14
- "x-tiwater-file-role": "write"
15
- },
16
- "receiptOutput": {
17
- "type": "string",
18
- "minLength": 1,
19
- "description": "New JSON receipt path. Existing files are never overwritten.",
20
- "x-tiwater-file-role": "write",
21
- "x-tiwater-file-effect": false
22
- },
23
- "changes": {
24
- "minItems": 1,
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "tableIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "startRowIndex": {
35
- "type": "integer",
36
- "description": "Zero-based index of the first existing row to replace.",
37
- "minimum": 0,
38
- "maximum": 9007199254740991
39
- },
40
- "endRowIndex": {
41
- "type": "integer",
42
- "description": "Zero-based index of the last existing row to replace. This is independent of the replacement rows count.",
43
- "minimum": 0,
44
- "maximum": 9007199254740991
45
- },
46
- "templateRowIndex": {
47
- "type": "integer",
48
- "minimum": 0,
49
- "maximum": 9007199254740991
50
- },
51
- "rows": {
52
- "type": "array",
53
- "description": "Final replacement rows. Their count may differ from the inclusive existing row range being replaced.",
54
- "items": {
55
- "type": "array",
56
- "items": {
57
- "type": "object",
58
- "properties": {
59
- "text": {
60
- "type": "string"
61
- },
62
- "gridSpan": {
63
- "type": "integer",
64
- "exclusiveMinimum": 0,
65
- "maximum": 9007199254740991
66
- },
67
- "vMerge": {
68
- "type": "string",
69
- "enum": [
70
- "restart",
71
- "continue",
72
- "none"
73
- ],
74
- "description": "Vertical merge state for this cell. Use none to clear a merge inherited from the template row."
75
- },
76
- "bold": {
77
- "type": "boolean"
78
- },
79
- "header": {
80
- "type": "boolean"
81
- },
82
- "shading": {
83
- "type": "string"
84
- },
85
- "alignment": {
86
- "type": "string"
87
- },
88
- "richText": {
89
- "type": "array",
90
- "items": {
91
- "type": "object",
92
- "properties": {
93
- "text": {
94
- "type": "string"
95
- },
96
- "color": {
97
- "type": "string"
98
- },
99
- "underline": {
100
- "type": "boolean"
101
- },
102
- "bold": {
103
- "type": "boolean"
104
- },
105
- "fontName": {
106
- "type": "string"
107
- },
108
- "italic": {
109
- "type": "boolean"
110
- },
111
- "verticalAlignment": {
112
- "type": "string",
113
- "enum": [
114
- "baseline",
115
- "superscript",
116
- "subscript"
117
- ]
118
- }
119
- },
120
- "required": [
121
- "text"
122
- ],
123
- "additionalProperties": false
124
- }
125
- }
126
- },
127
- "additionalProperties": false
128
- }
129
- }
130
- }
131
- },
132
- "required": [
133
- "tableIndex",
134
- "startRowIndex",
135
- "endRowIndex",
136
- "rows"
137
- ],
138
- "additionalProperties": false
139
- }
140
- }
141
- },
142
- "required": [
143
- "input",
144
- "output",
145
- "receiptOutput",
146
- "changes"
147
- ],
148
- "additionalProperties": false
149
- }