@tiwater/office-mcp 0.17.15 → 0.17.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.
@@ -47,7 +47,7 @@
47
47
  "required": ["firstRef", "lastRef"],
48
48
  "additionalProperties": false
49
49
  },
50
- "columns": {
50
+ "columns": {
51
51
  "type": "array",
52
52
  "minItems": 1,
53
53
  "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.",
@@ -60,6 +60,48 @@
60
60
  "required": ["sourceHeaderRef", "targetHeaderRef"],
61
61
  "additionalProperties": false
62
62
  }
63
+ },
64
+ "sourceCellContents": {
65
+ "type": "array",
66
+ "description": "Optional exact native content selections for source cells in the selected row range. Unlisted cells copy all paragraphs. An empty selection writes one empty paragraph while preserving the copied row and target presentation.",
67
+ "items": {
68
+ "type": "object",
69
+ "properties": {
70
+ "sourceCellRef": {
71
+ "type": "string",
72
+ "pattern": "^dox1_[0-9a-f]{64}$",
73
+ "description": "Observed source cell ref belonging to the selected source rows. Each source cell may appear once."
74
+ },
75
+ "sourceSelections": {
76
+ "type": "array",
77
+ "description": "Ordered content copied into this source cell's mapped target cell. Select a whole observed object by ref alone, or an exact substring by adding range to a run or text ref.",
78
+ "items": {
79
+ "type": "object",
80
+ "properties": {
81
+ "ref": {
82
+ "type": "string",
83
+ "pattern": "^dox1_[0-9a-f]{64}$",
84
+ "description": "Observed object ref belonging to sourceCellRef. When range is present this must be a run or text ref."
85
+ },
86
+ "range": {
87
+ "type": "object",
88
+ "description": "Zero-based substring within the selected run or text object.",
89
+ "properties": {
90
+ "start": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
91
+ "length": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2147483647 }
92
+ },
93
+ "required": ["start", "length"],
94
+ "additionalProperties": false
95
+ }
96
+ },
97
+ "required": ["ref"],
98
+ "additionalProperties": false
99
+ }
100
+ }
101
+ },
102
+ "required": ["sourceCellRef", "sourceSelections"],
103
+ "additionalProperties": false
104
+ }
63
105
  }
64
106
  },
65
107
  "required": ["targetTableRef", "targetRows", "sourceDocument", "sourceTableRef", "sourceRows", "columns"],
@@ -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.15"
5
+ "version": "0.17.16"
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": "1882b28d7727a50b06dde1a86996fca839da452f82fd7f3ae9e6f61cc88462b7"
67
+ "sha256": "ee5190a1740bed9470020ddb82c76b09827775fc22543cb27b44a715eb0694a4"
68
68
  },
69
69
  "inputContract": {
70
70
  "path": "office/contracts/docx_copy_table_rows.schema.json",
71
- "sha256": "1882b28d7727a50b06dde1a86996fca839da452f82fd7f3ae9e6f61cc88462b7"
71
+ "sha256": "ee5190a1740bed9470020ddb82c76b09827775fc22543cb27b44a715eb0694a4"
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. Explicit header-cell mappings preserve target presentation, source grouping, and every source-cell paragraph. When a target cell needs an exact subset, copy the row structure first and batch those cells with docx_copy_content.',
290
+ description: 'Populate existing target tables by replacing selected data-row ranges with selected source rows. Explicit header-cell mappings preserve target presentation and source grouping. All source-cell paragraphs copy by default; sourceCellContents can select exact observed content for individual source cells in the same operation.',
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.17.15",
3
+ "version": "0.17.16",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",