@tiwater/office-mcp 0.18.15 → 0.18.17

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.
@@ -110,5 +110,5 @@
110
110
  "receiptOutput"
111
111
  ],
112
112
  "additionalProperties": false,
113
- "$id": "tiwater.office-mcp-input/docx_copy_object"
113
+ "$id": "tiwater.office-mcp-input/docx_insert_objects"
114
114
  }
@@ -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.15"
5
+ "version": "0.18.17"
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": {
package/office/index.mjs CHANGED
@@ -335,7 +335,7 @@ const tools = [
335
335
  },
336
336
  {
337
337
  name: 'docx_read_table',
338
- description: 'Read exactly one table selected from docx_table_index by native OpenXML address. Writes the complete table, including text nodes, to output and returns a bounded row page with cells, spans, vertical merges, paragraph text, and reusable addresses. Continue with receipt.nextOffset. If receipt.narrowingRequired is true, list rows under the same table and read smaller objects. It does not locate a table or decide business meaning.',
338
+ description: 'Read exactly one table selected from docx_table_index by native OpenXML address. Writes the complete table, including text nodes, to output and returns a bounded row page with cells, spans, vertical merges, paragraph text, and reusable addresses. In a vertical merge, restart begins one logical cell and following continue cells belong to it; a continue cell is not an independent row value. Continue with receipt.nextOffset. If receipt.narrowingRequired is true, list rows under the same table and read smaller objects. It does not locate a table or decide business meaning.',
339
339
  inputSchema: inputContract('docx_read_table'),
340
340
  outputSchema: docxTableReadOutput,
341
341
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -350,7 +350,7 @@ const tools = [
350
350
  },
351
351
  {
352
352
  name: 'docx_set_text',
353
- description: 'Replace the whole text content of observed paragraph or cell objects while retaining target formatting and bookmarks. Tabs and line breaks remain native document text controls; targets containing non-text objects are rejected. This sets already-derived text; it does not insert objects, copy source formatting, or decide business wording.',
353
+ description: 'Replace the whole text content of observed paragraph or cell objects while retaining target formatting, bookmarks, spans, and vertical merges. For a vertically merged logical cell, write its visible text to the restart cell rather than a continue cell. Tabs and line breaks remain native document text controls; targets containing non-text objects are rejected. This sets already-derived text; it does not insert objects, change table structure, copy source formatting, or decide business wording.',
354
354
  inputSchema: inputContract('docx_set_text'),
355
355
  outputSchema: fixedEditOutput('docx_set_text'),
356
356
  handler: args => fixedEdit('docx_set_text', args),
@@ -363,11 +363,11 @@ const tools = [
363
363
  handler: args => fixedEdit('docx_replace_table_rows', args),
364
364
  },
365
365
  {
366
- name: 'docx_copy_object',
367
- 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_replace_table_rows instead.',
368
- inputSchema: inputContract('docx_copy_object'),
369
- outputSchema: fixedEditOutput('docx_copy_object'),
370
- handler: args => fixedEdit('docx_copy_object', args),
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.18.15",
3
+ "version": "0.18.17",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",