@tiwater/office-mcp 0.18.14 → 0.18.16
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/contracts/{docx_copy_object.schema.json → docx_insert_objects.schema.json} +1 -1
- package/office/contracts/docx_replace_table_rows.schema.json +0 -89
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +14 -14
- package/office/index.mjs +6 -6
- package/package.json +1 -1
|
@@ -197,95 +197,6 @@
|
|
|
197
197
|
],
|
|
198
198
|
"additionalProperties": false
|
|
199
199
|
}
|
|
200
|
-
},
|
|
201
|
-
"sourceCellContents": {
|
|
202
|
-
"type": "array",
|
|
203
|
-
"description": "Optional per-cell content selections. Omit this field to copy every paragraph from each mapped source cell.",
|
|
204
|
-
"items": {
|
|
205
|
-
"type": "object",
|
|
206
|
-
"properties": {
|
|
207
|
-
"sourceCell": {
|
|
208
|
-
"type": "object",
|
|
209
|
-
"properties": {
|
|
210
|
-
"part": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"minLength": 1
|
|
213
|
-
},
|
|
214
|
-
"path": {
|
|
215
|
-
"type": "string",
|
|
216
|
-
"pattern": "^\\/"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"required": [
|
|
220
|
-
"part",
|
|
221
|
-
"path"
|
|
222
|
-
],
|
|
223
|
-
"additionalProperties": false
|
|
224
|
-
},
|
|
225
|
-
"sourceSelections": {
|
|
226
|
-
"type": "array",
|
|
227
|
-
"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.",
|
|
228
|
-
"items": {
|
|
229
|
-
"type": "object",
|
|
230
|
-
"properties": {
|
|
231
|
-
"address": {
|
|
232
|
-
"type": "object",
|
|
233
|
-
"description": "Observed paragraph, run, or text OpenXML address selected from sourceCell.",
|
|
234
|
-
"properties": {
|
|
235
|
-
"part": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"minLength": 1
|
|
238
|
-
},
|
|
239
|
-
"path": {
|
|
240
|
-
"type": "string",
|
|
241
|
-
"pattern": "^\\/"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
"required": [
|
|
245
|
-
"part",
|
|
246
|
-
"path"
|
|
247
|
-
],
|
|
248
|
-
"additionalProperties": false
|
|
249
|
-
},
|
|
250
|
-
"range": {
|
|
251
|
-
"type": "object",
|
|
252
|
-
"properties": {
|
|
253
|
-
"start": {
|
|
254
|
-
"type": "integer",
|
|
255
|
-
"minimum": 0,
|
|
256
|
-
"maximum": 9007199254740991
|
|
257
|
-
},
|
|
258
|
-
"length": {
|
|
259
|
-
"type": "integer",
|
|
260
|
-
"exclusiveMinimum": 0,
|
|
261
|
-
"maximum": 9007199254740991
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"required": [
|
|
265
|
-
"start",
|
|
266
|
-
"length"
|
|
267
|
-
],
|
|
268
|
-
"additionalProperties": false
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
"required": [
|
|
272
|
-
"address"
|
|
273
|
-
],
|
|
274
|
-
"additionalProperties": false
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
"required": [
|
|
279
|
-
"sourceCell",
|
|
280
|
-
"sourceSelections"
|
|
281
|
-
],
|
|
282
|
-
"additionalProperties": false
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"sourceParagraphMode": {
|
|
286
|
-
"type": "string",
|
|
287
|
-
"const": "omit-paired-latin-prose",
|
|
288
|
-
"description": "Optional deterministic text selection for every mapped source cell. omit-paired-latin-prose preserves Han content and standalone technical expressions while omitting adjacent Latin prose paragraphs and punctuation-delimited translation clauses. It cannot be combined with sourceCellContents."
|
|
289
200
|
}
|
|
290
201
|
},
|
|
291
202
|
"required": [
|
|
@@ -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.16"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -49,17 +49,6 @@
|
|
|
49
49
|
"sha256": "a7b4998f8c9f6423c6d6ca5953d4b8ca5572f38dfdc23bcc06c20c7c488af727"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
{
|
|
53
|
-
"name": "docx_copy_object",
|
|
54
|
-
"providerContract": {
|
|
55
|
-
"source": "packages/docx-cli/contracts/mcp-input/docx_copy_object.schema.json",
|
|
56
|
-
"sha256": "f5ebb6c59a2bcb82e0504ab517505fe7525e905ff71bd9dea817967e79cee7a3"
|
|
57
|
-
},
|
|
58
|
-
"inputContract": {
|
|
59
|
-
"path": "office/contracts/docx_copy_object.schema.json",
|
|
60
|
-
"sha256": "f5ebb6c59a2bcb82e0504ab517505fe7525e905ff71bd9dea817967e79cee7a3"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
52
|
{
|
|
64
53
|
"name": "docx_delete_object",
|
|
65
54
|
"providerContract": {
|
|
@@ -82,6 +71,17 @@
|
|
|
82
71
|
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
83
72
|
}
|
|
84
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"name": "docx_insert_objects",
|
|
76
|
+
"providerContract": {
|
|
77
|
+
"source": "packages/docx-cli/contracts/mcp-input/docx_insert_objects.schema.json",
|
|
78
|
+
"sha256": "7cf239b13a9a5bfe15d426f9ed5747c5900a908d4877eeb77ddd9088afe8966f"
|
|
79
|
+
},
|
|
80
|
+
"inputContract": {
|
|
81
|
+
"path": "office/contracts/docx_insert_objects.schema.json",
|
|
82
|
+
"sha256": "7cf239b13a9a5bfe15d426f9ed5747c5900a908d4877eeb77ddd9088afe8966f"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
85
|
{
|
|
86
86
|
"name": "docx_inspect",
|
|
87
87
|
"providerContract": {
|
|
@@ -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": "180cd21147fcd8158d640d769d9b6e435f0fe8761a0c41a03b711582dfb9c64c"
|
|
167
167
|
},
|
|
168
168
|
"inputContract": {
|
|
169
169
|
"path": "office/contracts/docx_replace_table_rows.schema.json",
|
|
170
|
-
"sha256": "
|
|
170
|
+
"sha256": "180cd21147fcd8158d640d769d9b6e435f0fe8761a0c41a03b711582dfb9c64c"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
{
|
package/office/index.mjs
CHANGED
|
@@ -357,17 +357,17 @@ const tools = [
|
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
name: 'docx_replace_table_rows',
|
|
360
|
-
description: '
|
|
360
|
+
description: 'Atomically replace a contiguous data-row range in existing target tables after reading both tables. Each range excludes its header and closes vertical merges; omit targetRows.last to replace through the table end. It maps complete source columns into the target grid and copies every source paragraph. Prepare any semantic content changes with separate published text or object operations before this structural replacement.',
|
|
361
361
|
inputSchema: inputContract('docx_replace_table_rows'),
|
|
362
362
|
outputSchema: fixedEditOutput('docx_replace_table_rows'),
|
|
363
363
|
handler: args => fixedEdit('docx_replace_table_rows', args),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
name: '
|
|
367
|
-
description: 'Insert selected objects
|
|
368
|
-
inputSchema: inputContract('
|
|
369
|
-
outputSchema: fixedEditOutput('
|
|
370
|
-
handler: args => fixedEdit('
|
|
366
|
+
name: 'docx_insert_objects',
|
|
367
|
+
description: 'Insert selected current DOCX objects under an existing parent. Table rows are objects: expand a target table by copying observed row patterns into that table, using before for insertion position and repeat for count; sourceInput may equal input. This inserts new rows only; use docx_replace_table_rows to replace an existing data-row range from a source table.',
|
|
368
|
+
inputSchema: inputContract('docx_insert_objects'),
|
|
369
|
+
outputSchema: fixedEditOutput('docx_insert_objects'),
|
|
370
|
+
handler: args => fixedEdit('docx_insert_objects', args),
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
name: 'docx_delete_object',
|