@tiwater/office-mcp 0.18.6 → 0.18.8
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.
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"sourceRows": {
|
|
40
40
|
"type": "object",
|
|
41
|
+
"description": "Contiguous source data rows. The header row stays outside this range. The first and last row must enclose complete vertical-merge groups as reported by docx_read_table.",
|
|
41
42
|
"properties": {
|
|
42
43
|
"first": {
|
|
43
44
|
"type": "object",
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
},
|
|
103
104
|
"targetRows": {
|
|
104
105
|
"type": "object",
|
|
106
|
+
"description": "Contiguous target data rows to replace. The header row stays outside this range. The first and last row must enclose complete vertical-merge groups as reported by docx_read_table.",
|
|
105
107
|
"properties": {
|
|
106
108
|
"first": {
|
|
107
109
|
"type": "object",
|
|
@@ -149,6 +151,7 @@
|
|
|
149
151
|
"columns": {
|
|
150
152
|
"minItems": 1,
|
|
151
153
|
"type": "array",
|
|
154
|
+
"description": "Source-to-target header-cell mappings. Source headers share one row, target headers share one row, both header rows stay outside the selected data rows, and each side covers its complete table grid.",
|
|
152
155
|
"items": {
|
|
153
156
|
"type": "object",
|
|
154
157
|
"properties": {
|
|
@@ -198,6 +201,7 @@
|
|
|
198
201
|
},
|
|
199
202
|
"sourceCellContents": {
|
|
200
203
|
"type": "array",
|
|
204
|
+
"description": "Optional per-cell content selections. Omit this field to copy every paragraph from each mapped source cell.",
|
|
201
205
|
"items": {
|
|
202
206
|
"type": "object",
|
|
203
207
|
"properties": {
|
|
@@ -221,11 +225,13 @@
|
|
|
221
225
|
},
|
|
222
226
|
"sourceSelections": {
|
|
223
227
|
"type": "array",
|
|
228
|
+
"description": "Content selections inside sourceCell. Each item is a selection object; put the observed OpenXML address in its required address field and add range only for a substring.",
|
|
224
229
|
"items": {
|
|
225
230
|
"type": "object",
|
|
226
231
|
"properties": {
|
|
227
232
|
"address": {
|
|
228
233
|
"type": "object",
|
|
234
|
+
"description": "Observed paragraph, run, or text OpenXML address selected from sourceCell.",
|
|
229
235
|
"properties": {
|
|
230
236
|
"part": {
|
|
231
237
|
"type": "string",
|
|
@@ -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.18.
|
|
5
|
+
"version": "0.18.8"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -163,11 +163,11 @@
|
|
|
163
163
|
"name": "docx_replace_table_rows",
|
|
164
164
|
"providerContract": {
|
|
165
165
|
"source": "packages/docx-cli/contracts/mcp-input/docx_replace_table_rows.schema.json",
|
|
166
|
-
"sha256": "
|
|
166
|
+
"sha256": "544d36dc38d9fdf77cfefc0208591fc64321a510171a9b407ab6b46b9c1797e4"
|
|
167
167
|
},
|
|
168
168
|
"inputContract": {
|
|
169
169
|
"path": "office/contracts/docx_replace_table_rows.schema.json",
|
|
170
|
-
"sha256": "
|
|
170
|
+
"sha256": "544d36dc38d9fdf77cfefc0208591fc64321a510171a9b407ab6b46b9c1797e4"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
{
|
package/office/index.mjs
CHANGED
|
@@ -314,7 +314,7 @@ const tools = [
|
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
name: 'docx_replace_table_rows',
|
|
317
|
-
description: 'Replace one or more data-row ranges in one current target document.
|
|
317
|
+
description: 'Replace one or more data-row ranges in one current target document. Read both tables first. Each selected row range excludes its header and encloses complete vertical-merge groups; header-cell mappings cover both complete grids. Source cells copy all paragraphs by default. To keep selected content only, each sourceSelections item puts the observed address in its address field; range is optional for a substring.',
|
|
318
318
|
inputSchema: inputContract('docx_replace_table_rows'),
|
|
319
319
|
outputSchema: fixedEditOutput('docx_replace_table_rows'),
|
|
320
320
|
handler: args => fixedEdit('docx_replace_table_rows', args),
|