@tiwater/office-mcp 0.18.6 → 0.18.7

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.
@@ -198,6 +198,7 @@
198
198
  },
199
199
  "sourceCellContents": {
200
200
  "type": "array",
201
+ "description": "Optional per-cell content selections. Omit this field to copy every paragraph from each mapped source cell.",
201
202
  "items": {
202
203
  "type": "object",
203
204
  "properties": {
@@ -221,11 +222,13 @@
221
222
  },
222
223
  "sourceSelections": {
223
224
  "type": "array",
225
+ "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
226
  "items": {
225
227
  "type": "object",
226
228
  "properties": {
227
229
  "address": {
228
230
  "type": "object",
231
+ "description": "Observed paragraph, run, or text OpenXML address selected from sourceCell.",
229
232
  "properties": {
230
233
  "part": {
231
234
  "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.6"
5
+ "version": "0.18.7"
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": "02ce941414496ddffa7d531ca6fa982598f607b516d990d598ace521d725cdf6"
166
+ "sha256": "6472793274f22415b8144f693c393ed671dbcfc8045c978c652590619d34b0fc"
167
167
  },
168
168
  "inputContract": {
169
169
  "path": "office/contracts/docx_replace_table_rows.schema.json",
170
- "sha256": "02ce941414496ddffa7d531ca6fa982598f607b516d990d598ace521d725cdf6"
170
+ "sha256": "6472793274f22415b8144f693c393ed671dbcfc8045c978c652590619d34b0fc"
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. input appears once; each tables item binds sourceInput and exact source and target OpenXML addresses. All source-cell paragraphs copy by default; sourceCellContents selects exact observed content that the target keeps.',
317
+ description: 'Replace one or more data-row ranges in one current target document. Each tables item binds sourceInput and exact source and target OpenXML addresses. Source cells copy all paragraphs by default. To keep selected content only, each sourceSelections item is a selection object with 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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.18.6",
3
+ "version": "0.18.7",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",