@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,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
- "commentId": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "text": {
34
- "type": "string"
35
- }
36
- },
37
- "required": [
38
- "commentId",
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,53 +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
- "keepLines": {
35
- "type": "boolean"
36
- }
37
- },
38
- "required": [
39
- "paragraphIndex",
40
- "keepLines"
41
- ],
42
- "additionalProperties": false
43
- }
44
- }
45
- },
46
- "required": [
47
- "input",
48
- "output",
49
- "receiptOutput",
50
- "changes"
51
- ],
52
- "additionalProperties": false
53
- }
@@ -1,53 +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
- "keepNext": {
35
- "type": "boolean"
36
- }
37
- },
38
- "required": [
39
- "paragraphIndex",
40
- "keepNext"
41
- ],
42
- "additionalProperties": false
43
- }
44
- }
45
- },
46
- "required": [
47
- "input",
48
- "output",
49
- "receiptOutput",
50
- "changes"
51
- ],
52
- "additionalProperties": false
53
- }
@@ -1,59 +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
- "footerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "paragraphIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "text": {
40
- "type": "string"
41
- }
42
- },
43
- "required": [
44
- "footerIndex",
45
- "paragraphIndex",
46
- "text"
47
- ],
48
- "additionalProperties": false
49
- }
50
- }
51
- },
52
- "required": [
53
- "input",
54
- "output",
55
- "receiptOutput",
56
- "changes"
57
- ],
58
- "additionalProperties": false
59
- }
@@ -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
- "footerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "paragraphIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "runIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "text": {
45
- "type": "string"
46
- }
47
- },
48
- "required": [
49
- "footerIndex",
50
- "paragraphIndex",
51
- "runIndex",
52
- "text"
53
- ],
54
- "additionalProperties": false
55
- }
56
- }
57
- },
58
- "required": [
59
- "input",
60
- "output",
61
- "receiptOutput",
62
- "changes"
63
- ],
64
- "additionalProperties": false
65
- }
@@ -1,83 +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
- "footerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "tableIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "rowIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "cellIndex": {
45
- "type": "integer",
46
- "minimum": 0,
47
- "maximum": 9007199254740991
48
- },
49
- "paragraphIndex": {
50
- "type": "integer",
51
- "minimum": 0,
52
- "maximum": 9007199254740991
53
- },
54
- "runIndex": {
55
- "type": "integer",
56
- "minimum": 0,
57
- "maximum": 9007199254740991
58
- },
59
- "text": {
60
- "type": "string"
61
- }
62
- },
63
- "required": [
64
- "footerIndex",
65
- "tableIndex",
66
- "rowIndex",
67
- "cellIndex",
68
- "paragraphIndex",
69
- "runIndex",
70
- "text"
71
- ],
72
- "additionalProperties": false
73
- }
74
- }
75
- },
76
- "required": [
77
- "input",
78
- "output",
79
- "receiptOutput",
80
- "changes"
81
- ],
82
- "additionalProperties": false
83
- }
@@ -1,71 +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
- "footerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "tableIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "rowIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "cellIndex": {
45
- "type": "integer",
46
- "minimum": 0,
47
- "maximum": 9007199254740991
48
- },
49
- "text": {
50
- "type": "string"
51
- }
52
- },
53
- "required": [
54
- "footerIndex",
55
- "tableIndex",
56
- "rowIndex",
57
- "cellIndex",
58
- "text"
59
- ],
60
- "additionalProperties": false
61
- }
62
- }
63
- },
64
- "required": [
65
- "input",
66
- "output",
67
- "receiptOutput",
68
- "changes"
69
- ],
70
- "additionalProperties": false
71
- }
@@ -1,60 +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
- "headerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "paragraphIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "fontSize": {
40
- "type": "string",
41
- "minLength": 1
42
- }
43
- },
44
- "required": [
45
- "headerIndex",
46
- "paragraphIndex",
47
- "fontSize"
48
- ],
49
- "additionalProperties": false
50
- }
51
- }
52
- },
53
- "required": [
54
- "input",
55
- "output",
56
- "receiptOutput",
57
- "changes"
58
- ],
59
- "additionalProperties": false
60
- }
@@ -1,59 +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
- "headerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "paragraphIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "text": {
40
- "type": "string"
41
- }
42
- },
43
- "required": [
44
- "headerIndex",
45
- "paragraphIndex",
46
- "text"
47
- ],
48
- "additionalProperties": false
49
- }
50
- }
51
- },
52
- "required": [
53
- "input",
54
- "output",
55
- "receiptOutput",
56
- "changes"
57
- ],
58
- "additionalProperties": false
59
- }
@@ -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
- "headerIndex": {
30
- "type": "integer",
31
- "minimum": 0,
32
- "maximum": 9007199254740991
33
- },
34
- "paragraphIndex": {
35
- "type": "integer",
36
- "minimum": 0,
37
- "maximum": 9007199254740991
38
- },
39
- "runIndex": {
40
- "type": "integer",
41
- "minimum": 0,
42
- "maximum": 9007199254740991
43
- },
44
- "text": {
45
- "type": "string"
46
- }
47
- },
48
- "required": [
49
- "headerIndex",
50
- "paragraphIndex",
51
- "runIndex",
52
- "text"
53
- ],
54
- "additionalProperties": false
55
- }
56
- }
57
- },
58
- "required": [
59
- "input",
60
- "output",
61
- "receiptOutput",
62
- "changes"
63
- ],
64
- "additionalProperties": false
65
- }