@tiwater/office-mcp 0.18.5 → 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.5"
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
@@ -268,7 +268,7 @@ const tools = [
268
268
  },
269
269
  {
270
270
  name: 'docx_list_objects',
271
- description: 'List one small page of nearest-child OpenXML addresses from the current DOCX in native document order and retain the exact page at output. Continue with nextOffset and descend through a returned address as parent. Text previews describe already located objects; they do not prove descendant content.',
271
+ description: 'Page through mixed nearest-child OpenXML objects when document order or paragraph relationships are required. Continue with nextOffset and descend through a returned parent address. Do not use this tool to locate tables or read a whole document: use docx_table_index to locate tables, then docx_read_table for one selected table.',
272
272
  inputSchema: inputContract('docx_list_objects'),
273
273
  outputSchema: docxListObjectsOutput,
274
274
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -276,7 +276,7 @@ const tools = [
276
276
  },
277
277
  {
278
278
  name: 'docx_table_index',
279
- description: 'List every table in one current DOCX as a compact native index with its OpenXML address, row count, column count, and short text preview. Use it to choose a table and confirm its shape before listing rows or reading selected content. It does not return full cell content or decide table semantics.',
279
+ description: 'Locate tables in one current DOCX. Returns one compact index containing every table address, shape, and short text preview. Choose the needed address from this index, then call docx_read_table. It does not return full cell content or decide table semantics.',
280
280
  inputSchema: inputContract('docx_table_index'),
281
281
  outputSchema: docxTableIndexOutput,
282
282
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -292,7 +292,7 @@ const tools = [
292
292
  },
293
293
  {
294
294
  name: 'docx_read_table',
295
- description: 'Read one complete table selected by its native OpenXML address. Returns compact rows, cells, spans, vertical merges, paragraphs, text nodes, and their reusable addresses in document order. It does not search for a table or decide business meaning.',
295
+ description: 'Read exactly one table selected from docx_table_index by native OpenXML address. Returns its rows, cells, spans, vertical merges, paragraphs, text nodes, and reusable addresses in document order. It does not locate a table or decide business meaning.',
296
296
  inputSchema: inputContract('docx_read_table'),
297
297
  outputSchema: docxTableReadOutput,
298
298
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -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.5",
3
+ "version": "0.18.7",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",