@tiwater/office-mcp 0.14.2 → 0.15.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.
- package/office/README.md +10 -10
- package/office/contracts/docx_apply_font_policy.schema.json +73 -0
- package/office/contracts/docx_apply_toc_style_policy.schema.json +49 -0
- package/office/contracts/docx_collapse_trailing_empty_paragraphs.schema.json +26 -0
- package/office/contracts/docx_collapse_trailing_empty_section.schema.json +26 -0
- package/office/contracts/docx_compare.schema.json +19 -0
- package/office/contracts/docx_copy_table_range.schema.json +111 -0
- package/office/contracts/docx_delete_body_drawing_before_paragraph.schema.json +50 -0
- package/office/contracts/docx_delete_body_paragraph.schema.json +50 -0
- package/office/contracts/docx_delete_body_range.schema.json +65 -0
- package/office/contracts/docx_delete_comments.schema.json +48 -0
- package/office/contracts/docx_delete_table_rows.schema.json +57 -0
- package/office/contracts/docx_export_json.schema.json +20 -0
- package/office/contracts/docx_find_literal.schema.json +46 -0
- package/office/contracts/docx_freeze_fields.schema.json +26 -0
- package/office/contracts/docx_insert_body_image.schema.json +65 -0
- package/office/contracts/docx_insert_body_range.schema.json +62 -0
- package/office/contracts/docx_insert_table_columns.schema.json +61 -0
- package/office/contracts/docx_insert_table_rows.schema.json +130 -0
- package/office/contracts/docx_inspect.schema.json +20 -0
- package/office/contracts/docx_inspect_tables.schema.json +20 -0
- package/office/contracts/docx_list_objects.schema.json +42 -0
- package/office/contracts/docx_mark_fields_dirty.schema.json +26 -0
- package/office/contracts/docx_merge_table_cells.schema.json +80 -0
- package/office/contracts/docx_read_object.schema.json +24 -0
- package/office/contracts/docx_replace_body_text.schema.json +48 -0
- package/office/contracts/docx_replace_drawing_image.schema.json +56 -0
- package/office/contracts/docx_replace_header_text.schema.json +48 -0
- package/office/contracts/docx_replace_style_ids.schema.json +29 -0
- package/office/contracts/docx_replace_table_rows.schema.json +136 -0
- package/office/contracts/docx_sanitize_fields.schema.json +26 -0
- package/office/contracts/docx_set_anchored_text.schema.json +48 -0
- package/office/contracts/docx_set_body_paragraph_keep_lines.schema.json +49 -0
- package/office/contracts/docx_set_body_paragraph_keep_next.schema.json +49 -0
- package/office/contracts/docx_set_footer_paragraph_text.schema.json +55 -0
- package/office/contracts/docx_set_footer_run_text.schema.json +61 -0
- package/office/contracts/docx_set_footer_table_cell_run_text.schema.json +79 -0
- package/office/contracts/docx_set_footer_table_cell_text.schema.json +67 -0
- package/office/contracts/docx_set_header_paragraph_font_size.schema.json +56 -0
- package/office/contracts/docx_set_header_paragraph_text.schema.json +55 -0
- package/office/contracts/docx_set_header_run_text.schema.json +61 -0
- package/office/contracts/docx_set_header_table_cell_run_text.schema.json +79 -0
- package/office/contracts/docx_set_header_table_cell_text.schema.json +67 -0
- package/office/contracts/docx_set_paragraph_run_text.schema.json +55 -0
- package/office/contracts/docx_set_paragraph_text.schema.json +49 -0
- package/office/contracts/docx_set_table_cell_alignment.schema.json +62 -0
- package/office/contracts/docx_set_table_cell_font_size.schema.json +62 -0
- package/office/contracts/docx_set_table_cell_no_wrap.schema.json +61 -0
- package/office/contracts/docx_set_table_cell_rich_text.schema.json +96 -0
- package/office/contracts/docx_set_table_cell_run_text.schema.json +73 -0
- package/office/contracts/docx_set_table_cell_text.schema.json +64 -0
- package/office/contracts/docx_set_table_row_cant_split.schema.json +55 -0
- package/office/contracts/docx_set_table_row_height.schema.json +59 -0
- package/office/contracts/docx_set_table_row_keep_next.schema.json +55 -0
- package/office/contracts/docx_set_table_row_repeat_as_header.schema.json +119 -0
- package/office/contracts/docx_set_table_width.schema.json +60 -0
- package/office/contracts/docx_start_section.schema.json +52 -0
- package/office/contracts/docx_strip_direct_formatting.schema.json +19 -0
- package/office/contracts/docx_unmerge_table_column_cells.schema.json +63 -0
- package/office/contracts/docx_unmerge_table_row_cells.schema.json +57 -0
- package/office/contracts/docx_validate.schema.json +14 -0
- package/office/contracts/docx_validate_font_policy.schema.json +48 -0
- package/office/contracts/docx_validate_toc_style_policy.schema.json +24 -0
- package/office/contracts/office_render_pdf.schema.json +27 -0
- package/office/contracts/pptx_apply_format.schema.json +74 -0
- package/office/contracts/pptx_apply_template.schema.json +111 -0
- package/office/contracts/pptx_export_json.schema.json +20 -0
- package/office/contracts/pptx_inspect.schema.json +20 -0
- package/office/contracts/pptx_replace_picture_image.schema.json +57 -0
- package/office/contracts/pptx_set_shape_geometry.schema.json +76 -0
- package/office/contracts/pptx_validate.schema.json +14 -0
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +955 -0
- package/office/contracts/xlsx_convert_legacy.schema.json +24 -0
- package/office/contracts/xlsx_copy_row.schema.json +59 -0
- package/office/contracts/xlsx_delete_rows.schema.json +56 -0
- package/office/contracts/xlsx_expand_section_rows.schema.json +70 -0
- package/office/contracts/xlsx_export_json.schema.json +24 -0
- package/office/contracts/xlsx_insert_rows.schema.json +62 -0
- package/office/contracts/xlsx_inspect.schema.json +20 -0
- package/office/contracts/xlsx_set_cell_number_format.schema.json +54 -0
- package/office/contracts/xlsx_set_cell_value.schema.json +78 -0
- package/office/contracts/xlsx_set_column_width.schema.json +55 -0
- package/office/contracts/xlsx_set_page_setup.schema.json +90 -0
- package/office/contracts/xlsx_set_print_area.schema.json +49 -0
- package/office/contracts/xlsx_set_range_values.schema.json +75 -0
- package/office/contracts/xlsx_set_rich_text_cell_value.schema.json +57 -0
- package/office/contracts/xlsx_set_row_page_breaks.schema.json +53 -0
- package/office/contracts/xlsx_validate.schema.json +14 -0
- package/office/index.mjs +188 -493
- package/package.json +2 -7
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"input",
|
|
22
|
+
"output",
|
|
23
|
+
"receiptOutput"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"targetBodyIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"image": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
},
|
|
34
|
+
"widthEmu": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"exclusiveMinimum": 0,
|
|
37
|
+
"maximum": 9007199254740991
|
|
38
|
+
},
|
|
39
|
+
"heightEmu": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"exclusiveMinimum": 0,
|
|
42
|
+
"maximum": 9007199254740991
|
|
43
|
+
},
|
|
44
|
+
"altText": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"targetBodyIndex",
|
|
50
|
+
"image",
|
|
51
|
+
"widthEmu",
|
|
52
|
+
"heightEmu"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"input",
|
|
60
|
+
"output",
|
|
61
|
+
"receiptOutput",
|
|
62
|
+
"changes"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"source": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1
|
|
28
|
+
},
|
|
29
|
+
"sourceStartBodyIndex": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 0,
|
|
32
|
+
"maximum": 9007199254740991
|
|
33
|
+
},
|
|
34
|
+
"sourceEndBodyIndex": {
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"minimum": 0,
|
|
37
|
+
"maximum": 9007199254740991
|
|
38
|
+
},
|
|
39
|
+
"targetBodyIndex": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"maximum": 9007199254740991
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"source",
|
|
47
|
+
"sourceStartBodyIndex",
|
|
48
|
+
"sourceEndBodyIndex",
|
|
49
|
+
"targetBodyIndex"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"input",
|
|
57
|
+
"output",
|
|
58
|
+
"receiptOutput",
|
|
59
|
+
"changes"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"columnIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"columnCount": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"exclusiveMinimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"templateColumnIndex": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"maximum": 9007199254740991
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"tableIndex",
|
|
48
|
+
"columnIndex"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"input",
|
|
56
|
+
"output",
|
|
57
|
+
"receiptOutput",
|
|
58
|
+
"changes"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"rowIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"templateRowIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"rows": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"text": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"gridSpan": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"exclusiveMinimum": 0,
|
|
53
|
+
"maximum": 9007199254740991
|
|
54
|
+
},
|
|
55
|
+
"vMerge": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"bold": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"header": {
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
},
|
|
64
|
+
"shading": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"alignment": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"richText": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"text": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"color": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"underline": {
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"bold": {
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"fontName": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"italic": {
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"verticalAlignment": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"baseline",
|
|
97
|
+
"superscript",
|
|
98
|
+
"subscript"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": [
|
|
103
|
+
"text"
|
|
104
|
+
],
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"tableIndex",
|
|
116
|
+
"rowIndex",
|
|
117
|
+
"rows"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"input",
|
|
125
|
+
"output",
|
|
126
|
+
"receiptOutput",
|
|
127
|
+
"changes"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New JSON artifact path. Existing files are never overwritten."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"input",
|
|
17
|
+
"output"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New JSON artifact path. Existing files are never overwritten."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"input",
|
|
17
|
+
"output"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
},
|
|
9
|
+
"kind": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"part",
|
|
13
|
+
"paragraph",
|
|
14
|
+
"table",
|
|
15
|
+
"row",
|
|
16
|
+
"cell",
|
|
17
|
+
"run",
|
|
18
|
+
"drawing"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"scope": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
},
|
|
25
|
+
"limit": {
|
|
26
|
+
"default": 100,
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"minimum": 1,
|
|
29
|
+
"maximum": 1000
|
|
30
|
+
},
|
|
31
|
+
"continuation": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"input",
|
|
38
|
+
"kind"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"$id": "tiwater.office-mcp-input/docx_list_objects/v1"
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"input",
|
|
22
|
+
"output",
|
|
23
|
+
"receiptOutput"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"rowIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"startCellIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"endCellIndex": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"maximum": 9007199254740991
|
|
44
|
+
},
|
|
45
|
+
"startRowIndex": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"minimum": 0,
|
|
48
|
+
"maximum": 9007199254740991
|
|
49
|
+
},
|
|
50
|
+
"endRowIndex": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"minimum": 0,
|
|
53
|
+
"maximum": 9007199254740991
|
|
54
|
+
},
|
|
55
|
+
"cellIndex": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 0,
|
|
58
|
+
"maximum": 9007199254740991
|
|
59
|
+
},
|
|
60
|
+
"gridColumn": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 0,
|
|
63
|
+
"maximum": 9007199254740991
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"tableIndex"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"input",
|
|
75
|
+
"output",
|
|
76
|
+
"receiptOutput",
|
|
77
|
+
"changes"
|
|
78
|
+
],
|
|
79
|
+
"additionalProperties": false
|
|
80
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
},
|
|
9
|
+
"ref": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^dox1_[0-9a-f]{64}$"
|
|
12
|
+
},
|
|
13
|
+
"revision": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"pattern": "^docx-rev-v1-[0-9a-f]{64}$"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"input",
|
|
20
|
+
"ref"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"$id": "tiwater.office-mcp-input/docx_read_object/v1"
|
|
24
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"findText": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1
|
|
28
|
+
},
|
|
29
|
+
"text": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"findText",
|
|
35
|
+
"text"
|
|
36
|
+
],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"input",
|
|
43
|
+
"output",
|
|
44
|
+
"receiptOutput",
|
|
45
|
+
"changes"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false
|
|
48
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"paragraphIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"drawingIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"image": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"paragraphIndex",
|
|
42
|
+
"drawingIndex",
|
|
43
|
+
"image"
|
|
44
|
+
],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"input",
|
|
51
|
+
"output",
|
|
52
|
+
"receiptOutput",
|
|
53
|
+
"changes"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|