@tiwater/office-mcp 0.21.52 → 0.21.53

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.
@@ -48,6 +48,12 @@
48
48
  "additionalProperties": false
49
49
  }
50
50
  },
51
+ "changesInput": {
52
+ "type": "string",
53
+ "minLength": 1,
54
+ "description": "Absolute path to a JSON file containing the same non-empty changes array accepted by changes. Use this for large batches so the array stays out of the tool call.",
55
+ "x-tiwater-file-role": "read"
56
+ },
51
57
  "output": {
52
58
  "type": "string",
53
59
  "minLength": 1,
@@ -63,7 +69,6 @@
63
69
  },
64
70
  "required": [
65
71
  "input",
66
- "changes",
67
72
  "output",
68
73
  "receiptOutput"
69
74
  ],
@@ -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.21.52"
5
+ "version": "0.21.53"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -240,11 +240,11 @@
240
240
  "name": "docx_set_text",
241
241
  "providerContract": {
242
242
  "source": "packages/docx-cli/contracts/mcp-input/docx_set_text.schema.json",
243
- "sha256": "45d8aa5d95402ac5b17fe07540355f81afa0804214ef319f33d7da11cf3c56cc"
243
+ "sha256": "6a69b2ba25551698b8cbc6040fda2c1d2b81afde4a9629a613ca37c9120bebe6"
244
244
  },
245
245
  "inputContract": {
246
246
  "path": "office/contracts/docx_set_text.schema.json",
247
- "sha256": "45d8aa5d95402ac5b17fe07540355f81afa0804214ef319f33d7da11cf3c56cc"
247
+ "sha256": "6a69b2ba25551698b8cbc6040fda2c1d2b81afde4a9629a613ca37c9120bebe6"
248
248
  }
249
249
  },
250
250
  {
package/office/index.mjs CHANGED
@@ -614,10 +614,10 @@ const tools = [
614
614
  {
615
615
  name: 'docx_set_text',
616
616
  effectKind: 'document-mutation',
617
- description: 'Replace the whole text content of paragraph or cell objects observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. A change may explicitly set the Latin and complex-script font family of its nonempty replacement run; East Asian font settings remain inherited from the target. 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. Use this only for newly derived text. Content copied or selected from a source DOCX uses docx_replace_content_from_source so native runs such as superscript and subscript are retained. This does not insert objects, change table structure, copy source formatting, or decide business wording.',
617
+ description: 'Replace the whole text content of paragraph or cell objects observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. Pass small batches in changes or keep a large batch out of the tool call by putting the same changes array in changesInput; both may be combined in one atomic commit. A change may explicitly set the Latin and complex-script font family of its nonempty replacement run; East Asian font settings remain inherited from the target. 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. Use this only for newly derived text. Content copied or selected from a source DOCX uses docx_replace_content_from_source so native runs such as superscript and subscript are retained. This does not insert objects, change table structure, copy source formatting, or decide business wording.',
618
618
  inputSchema: inputContract('docx_set_text'),
619
619
  outputSchema: fixedEditOutput('docx_set_text'),
620
- handler: (args, tool) => fixedEdit(tool, args, docxCandidates),
620
+ handler: async (args, tool) => fixedEdit(tool, await resolveFileBackedChanges(args), docxCandidates),
621
621
  },
622
622
  {
623
623
  name: 'docx_set_paragraph_pagination',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.21.52",
3
+ "version": "0.21.53",
4
4
  "description": "Published MCP distribution for independent Tiwater Office, PDF, and Text document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.pdf-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.52"
5
+ "version": "0.21.53"
6
6
  },
7
7
  "runtime": {
8
8
  "command": "tiwater-pdf"
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.text-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.21.52"
5
+ "version": "0.21.53"
6
6
  },
7
7
  "tools": [
8
8
  {