@tiwater/office-mcp 0.16.10 → 0.16.12

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.
@@ -19,8 +19,9 @@
19
19
  "type": "object",
20
20
  "properties": {
21
21
  "targetTableRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
22
- "targetRows": {
23
- "type": "object",
22
+ "targetRows": {
23
+ "type": "object",
24
+ "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.",
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}$" }
@@ -38,8 +39,9 @@
38
39
  "additionalProperties": false
39
40
  },
40
41
  "sourceTableRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
41
- "sourceRows": {
42
- "type": "object",
42
+ "sourceRows": {
43
+ "type": "object",
44
+ "description": "Contiguous source business-row range. Do not begin on an unlabeled continuation row from an excluded business group. If another column's visible merge began before the range, the provider carries its origin value into a new merge start.",
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}$" },
@@ -51,9 +53,10 @@
51
53
  "required": ["firstRef", "lastRef"],
52
54
  "additionalProperties": false
53
55
  },
54
- "columns": {
55
- "type": "array",
56
- "minItems": 1,
56
+ "columns": {
57
+ "type": "array",
58
+ "minItems": 1,
59
+ "description": "One mapping per logical header cell. A header cell owns its full OpenXML gridSpan; do not add separate mappings for physical grid columns inside that span.",
57
60
  "items": {
58
61
  "type": "object",
59
62
  "properties": {
@@ -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.16.10"
5
+ "version": "0.16.12"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -42,11 +42,11 @@
42
42
  "name": "docx_copy_table_rows",
43
43
  "providerContract": {
44
44
  "source": "packages/docx-cli/contracts/mcp-input/docx_copy_table_rows.schema.json",
45
- "sha256": "1698ca119543d17b954ce1cfeaf31f536a98da23cc90c9120cfd3d1d74093706"
45
+ "sha256": "f24924a80de9d9cfe619c9b4f6475d370c75fe221dcbe3af9692ad15c648d3b0"
46
46
  },
47
47
  "inputContract": {
48
48
  "path": "office/contracts/docx_copy_table_rows.schema.json",
49
- "sha256": "1698ca119543d17b954ce1cfeaf31f536a98da23cc90c9120cfd3d1d74093706"
49
+ "sha256": "f24924a80de9d9cfe619c9b4f6475d370c75fe221dcbe3af9692ad15c648d3b0"
50
50
  }
51
51
  },
52
52
  {
package/office/index.mjs CHANGED
@@ -214,14 +214,14 @@ const tools = [
214
214
  },
215
215
  {
216
216
  name: 'docx_copy_table_rows',
217
- description: 'Create a new DOCX by replacing selected target table row ranges with selected source rows, using explicit source-to-target header cell mappings while retaining target presentation.',
217
+ description: 'Populate existing target tables by replacing selected data-row ranges with selected source rows. Use this whenever the target table already exists; explicit header-cell mappings preserve target presentation and native source grouping even when source and target grid spans differ.',
218
218
  inputSchema: inputContract('docx_copy_table_rows'),
219
219
  outputSchema: fixedEditOutput('docx_copy_table_rows'),
220
220
  handler: args => fixedEdit('docx_copy_table_rows', args),
221
221
  },
222
222
  {
223
223
  name: 'docx_copy_object',
224
- description: 'Create a new output by copying targetDocument and applying one or more selected-object insertions under selected target parent objects.',
224
+ description: 'Insert selected objects only when the target needs a new object under an existing parent. Do not use this to populate or replace rows in an existing target table; use docx_copy_table_rows instead.',
225
225
  inputSchema: inputContract('docx_copy_object'),
226
226
  outputSchema: fixedEditOutput('docx_copy_object'),
227
227
  handler: args => fixedEdit('docx_copy_object', args),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.16.10",
3
+ "version": "0.16.12",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",