@tiwater/office-mcp 0.17.16 → 0.17.18
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.
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
"$id": "tiwater.office-mcp-input/docx_copy_table_rows",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
-
"targetDocument": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" }
|
|
10
|
-
},
|
|
11
|
-
"required": ["input"],
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
},
|
|
14
6
|
"changes": {
|
|
15
7
|
"type": "array",
|
|
16
8
|
"minItems": 1,
|
|
17
9
|
"items": {
|
|
18
10
|
"type": "object",
|
|
19
11
|
"properties": {
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
"sourceDocument": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"description": "Exact source document for this table edit.",
|
|
15
|
+
"properties": {
|
|
16
|
+
"input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" }
|
|
17
|
+
},
|
|
18
|
+
"required": ["input"],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
},
|
|
21
|
+
"sourceTableRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
|
|
22
|
+
"sourceRows": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"description": "Exact contiguous source rows to copy. Select only wanted rows; the range cannot begin or end inside a vertical merge.",
|
|
24
25
|
"properties": {
|
|
25
26
|
"firstRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
|
|
26
27
|
"lastRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" }
|
|
@@ -28,18 +29,19 @@
|
|
|
28
29
|
"required": ["firstRef", "lastRef"],
|
|
29
30
|
"additionalProperties": false
|
|
30
31
|
},
|
|
31
|
-
"
|
|
32
|
+
"targetDocument": {
|
|
32
33
|
"type": "object",
|
|
34
|
+
"description": "Exact target document for this table edit. Every item in one call must name the same target document.",
|
|
33
35
|
"properties": {
|
|
34
36
|
"input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" }
|
|
35
37
|
},
|
|
36
38
|
"required": ["input"],
|
|
37
39
|
"additionalProperties": false
|
|
38
40
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
"targetTableRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
|
|
42
|
+
"targetRows": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "Complete target data-row range to replace. Exclude every header row, including continuation rows in a multi-row header; the range cannot start or end inside a vertical merge.",
|
|
43
45
|
"properties": {
|
|
44
46
|
"firstRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
|
|
45
47
|
"lastRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" }
|
|
@@ -104,7 +106,7 @@
|
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
},
|
|
107
|
-
"required": ["
|
|
109
|
+
"required": ["sourceDocument", "sourceTableRef", "sourceRows", "targetDocument", "targetTableRef", "targetRows", "columns"],
|
|
108
110
|
"additionalProperties": false
|
|
109
111
|
}
|
|
110
112
|
},
|
|
@@ -116,6 +118,6 @@
|
|
|
116
118
|
"x-tiwater-file-effect": false
|
|
117
119
|
}
|
|
118
120
|
},
|
|
119
|
-
"required": ["
|
|
121
|
+
"required": ["changes", "output", "receiptOutput"],
|
|
120
122
|
"additionalProperties": false
|
|
121
123
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "tiwater.office-provider-contract-manifest/v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "@tiwater/office-mcp",
|
|
5
|
-
"version": "0.17.
|
|
5
|
+
"version": "0.17.18"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"name": "docx_copy_table_rows",
|
|
65
65
|
"providerContract": {
|
|
66
66
|
"source": "packages/docx-cli/contracts/mcp-input/docx_copy_table_rows.schema.json",
|
|
67
|
-
"sha256": "
|
|
67
|
+
"sha256": "f0c72dc539bbacbc00320c4735ba1de5dd6ebe11be82e97f3951ba442a5bd6ad"
|
|
68
68
|
},
|
|
69
69
|
"inputContract": {
|
|
70
70
|
"path": "office/contracts/docx_copy_table_rows.schema.json",
|
|
71
|
-
"sha256": "
|
|
71
|
+
"sha256": "f0c72dc539bbacbc00320c4735ba1de5dd6ebe11be82e97f3951ba442a5bd6ad"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
{
|
package/office/index.mjs
CHANGED
|
@@ -287,7 +287,7 @@ const tools = [
|
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
name: 'docx_copy_table_rows',
|
|
290
|
-
description: 'Populate existing target tables by replacing selected data-row ranges with selected source rows.
|
|
290
|
+
description: 'Populate existing target tables by replacing selected data-row ranges with selected source rows. Each changes item contains its sourceDocument, source table and rows, targetDocument, target table and rows, and header-cell mappings. Every item in one call must use the same target document; batch all resolved edits because a successful edit invalidates prior target refs. All source-cell paragraphs copy by default; sourceCellContents selects exact observed content for individual source cells.',
|
|
291
291
|
inputSchema: inputContract('docx_copy_table_rows'),
|
|
292
292
|
outputSchema: fixedEditOutput('docx_copy_table_rows'),
|
|
293
293
|
handler: args => fixedEdit('docx_copy_table_rows', args),
|