@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.
Files changed (90) hide show
  1. package/office/README.md +10 -10
  2. package/office/contracts/docx_apply_font_policy.schema.json +73 -0
  3. package/office/contracts/docx_apply_toc_style_policy.schema.json +49 -0
  4. package/office/contracts/docx_collapse_trailing_empty_paragraphs.schema.json +26 -0
  5. package/office/contracts/docx_collapse_trailing_empty_section.schema.json +26 -0
  6. package/office/contracts/docx_compare.schema.json +19 -0
  7. package/office/contracts/docx_copy_table_range.schema.json +111 -0
  8. package/office/contracts/docx_delete_body_drawing_before_paragraph.schema.json +50 -0
  9. package/office/contracts/docx_delete_body_paragraph.schema.json +50 -0
  10. package/office/contracts/docx_delete_body_range.schema.json +65 -0
  11. package/office/contracts/docx_delete_comments.schema.json +48 -0
  12. package/office/contracts/docx_delete_table_rows.schema.json +57 -0
  13. package/office/contracts/docx_export_json.schema.json +20 -0
  14. package/office/contracts/docx_find_literal.schema.json +46 -0
  15. package/office/contracts/docx_freeze_fields.schema.json +26 -0
  16. package/office/contracts/docx_insert_body_image.schema.json +65 -0
  17. package/office/contracts/docx_insert_body_range.schema.json +62 -0
  18. package/office/contracts/docx_insert_table_columns.schema.json +61 -0
  19. package/office/contracts/docx_insert_table_rows.schema.json +130 -0
  20. package/office/contracts/docx_inspect.schema.json +20 -0
  21. package/office/contracts/docx_inspect_tables.schema.json +20 -0
  22. package/office/contracts/docx_list_objects.schema.json +42 -0
  23. package/office/contracts/docx_mark_fields_dirty.schema.json +26 -0
  24. package/office/contracts/docx_merge_table_cells.schema.json +80 -0
  25. package/office/contracts/docx_read_object.schema.json +24 -0
  26. package/office/contracts/docx_replace_body_text.schema.json +48 -0
  27. package/office/contracts/docx_replace_drawing_image.schema.json +56 -0
  28. package/office/contracts/docx_replace_header_text.schema.json +48 -0
  29. package/office/contracts/docx_replace_style_ids.schema.json +29 -0
  30. package/office/contracts/docx_replace_table_rows.schema.json +136 -0
  31. package/office/contracts/docx_sanitize_fields.schema.json +26 -0
  32. package/office/contracts/docx_set_anchored_text.schema.json +48 -0
  33. package/office/contracts/docx_set_body_paragraph_keep_lines.schema.json +49 -0
  34. package/office/contracts/docx_set_body_paragraph_keep_next.schema.json +49 -0
  35. package/office/contracts/docx_set_footer_paragraph_text.schema.json +55 -0
  36. package/office/contracts/docx_set_footer_run_text.schema.json +61 -0
  37. package/office/contracts/docx_set_footer_table_cell_run_text.schema.json +79 -0
  38. package/office/contracts/docx_set_footer_table_cell_text.schema.json +67 -0
  39. package/office/contracts/docx_set_header_paragraph_font_size.schema.json +56 -0
  40. package/office/contracts/docx_set_header_paragraph_text.schema.json +55 -0
  41. package/office/contracts/docx_set_header_run_text.schema.json +61 -0
  42. package/office/contracts/docx_set_header_table_cell_run_text.schema.json +79 -0
  43. package/office/contracts/docx_set_header_table_cell_text.schema.json +67 -0
  44. package/office/contracts/docx_set_paragraph_run_text.schema.json +55 -0
  45. package/office/contracts/docx_set_paragraph_text.schema.json +49 -0
  46. package/office/contracts/docx_set_table_cell_alignment.schema.json +62 -0
  47. package/office/contracts/docx_set_table_cell_font_size.schema.json +62 -0
  48. package/office/contracts/docx_set_table_cell_no_wrap.schema.json +61 -0
  49. package/office/contracts/docx_set_table_cell_rich_text.schema.json +96 -0
  50. package/office/contracts/docx_set_table_cell_run_text.schema.json +73 -0
  51. package/office/contracts/docx_set_table_cell_text.schema.json +64 -0
  52. package/office/contracts/docx_set_table_row_cant_split.schema.json +55 -0
  53. package/office/contracts/docx_set_table_row_height.schema.json +59 -0
  54. package/office/contracts/docx_set_table_row_keep_next.schema.json +55 -0
  55. package/office/contracts/docx_set_table_row_repeat_as_header.schema.json +119 -0
  56. package/office/contracts/docx_set_table_width.schema.json +60 -0
  57. package/office/contracts/docx_start_section.schema.json +52 -0
  58. package/office/contracts/docx_strip_direct_formatting.schema.json +19 -0
  59. package/office/contracts/docx_unmerge_table_column_cells.schema.json +63 -0
  60. package/office/contracts/docx_unmerge_table_row_cells.schema.json +57 -0
  61. package/office/contracts/docx_validate.schema.json +14 -0
  62. package/office/contracts/docx_validate_font_policy.schema.json +48 -0
  63. package/office/contracts/docx_validate_toc_style_policy.schema.json +24 -0
  64. package/office/contracts/office_render_pdf.schema.json +27 -0
  65. package/office/contracts/pptx_apply_format.schema.json +74 -0
  66. package/office/contracts/pptx_apply_template.schema.json +111 -0
  67. package/office/contracts/pptx_export_json.schema.json +20 -0
  68. package/office/contracts/pptx_inspect.schema.json +20 -0
  69. package/office/contracts/pptx_replace_picture_image.schema.json +57 -0
  70. package/office/contracts/pptx_set_shape_geometry.schema.json +76 -0
  71. package/office/contracts/pptx_validate.schema.json +14 -0
  72. package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +955 -0
  73. package/office/contracts/xlsx_convert_legacy.schema.json +24 -0
  74. package/office/contracts/xlsx_copy_row.schema.json +59 -0
  75. package/office/contracts/xlsx_delete_rows.schema.json +56 -0
  76. package/office/contracts/xlsx_expand_section_rows.schema.json +70 -0
  77. package/office/contracts/xlsx_export_json.schema.json +24 -0
  78. package/office/contracts/xlsx_insert_rows.schema.json +62 -0
  79. package/office/contracts/xlsx_inspect.schema.json +20 -0
  80. package/office/contracts/xlsx_set_cell_number_format.schema.json +54 -0
  81. package/office/contracts/xlsx_set_cell_value.schema.json +78 -0
  82. package/office/contracts/xlsx_set_column_width.schema.json +55 -0
  83. package/office/contracts/xlsx_set_page_setup.schema.json +90 -0
  84. package/office/contracts/xlsx_set_print_area.schema.json +49 -0
  85. package/office/contracts/xlsx_set_range_values.schema.json +75 -0
  86. package/office/contracts/xlsx_set_rich_text_cell_value.schema.json +57 -0
  87. package/office/contracts/xlsx_set_row_page_breaks.schema.json +53 -0
  88. package/office/contracts/xlsx_validate.schema.json +14 -0
  89. package/office/index.mjs +188 -493
  90. package/package.json +2 -7
@@ -0,0 +1,75 @@
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
+ "sheet": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "startCell": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "values": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "array",
37
+ "items": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string"
41
+ },
42
+ {
43
+ "type": "number"
44
+ },
45
+ {
46
+ "type": "boolean"
47
+ },
48
+ {
49
+ "type": "null"
50
+ }
51
+ ]
52
+ }
53
+ }
54
+ },
55
+ "valueType": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "sheet",
61
+ "startCell",
62
+ "values"
63
+ ],
64
+ "additionalProperties": false
65
+ }
66
+ }
67
+ },
68
+ "required": [
69
+ "input",
70
+ "output",
71
+ "receiptOutput",
72
+ "changes"
73
+ ],
74
+ "additionalProperties": false
75
+ }
@@ -0,0 +1,57 @@
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
+ "sheet": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "cell": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "value": {
34
+ "type": "string"
35
+ },
36
+ "bold": {
37
+ "type": "boolean"
38
+ }
39
+ },
40
+ "required": [
41
+ "sheet",
42
+ "cell",
43
+ "value",
44
+ "bold"
45
+ ],
46
+ "additionalProperties": false
47
+ }
48
+ }
49
+ },
50
+ "required": [
51
+ "input",
52
+ "output",
53
+ "receiptOutput",
54
+ "changes"
55
+ ],
56
+ "additionalProperties": false
57
+ }
@@ -0,0 +1,53 @@
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
+ "sheet": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "breakBeforeRows": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "integer",
33
+ "exclusiveMinimum": 0,
34
+ "maximum": 9007199254740991
35
+ }
36
+ }
37
+ },
38
+ "required": [
39
+ "sheet",
40
+ "breakBeforeRows"
41
+ ],
42
+ "additionalProperties": false
43
+ }
44
+ }
45
+ },
46
+ "required": [
47
+ "input",
48
+ "output",
49
+ "receiptOutput",
50
+ "changes"
51
+ ],
52
+ "additionalProperties": false
53
+ }
@@ -0,0 +1,14 @@
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
+ },
10
+ "required": [
11
+ "input"
12
+ ],
13
+ "additionalProperties": false
14
+ }