@tiwater/office-mcp 0.21.60 → 0.21.62
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.
- package/office/contracts/docx_read_all_tables.schema.json +5 -0
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +3 -3
- package/office/index.mjs +2 -2
- package/package.json +1 -1
- package/pdf/contracts/tiwater-pdf-provider-contract-manifest-v1.json +1 -1
- package/text/contracts/tiwater-text-provider-contract-manifest-v1.json +1 -1
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"description": "New JSON file that receives every native table in document order, including rows, cells, merges, paragraphs, and text nodes.",
|
|
16
16
|
"x-tiwater-file-role": "write",
|
|
17
17
|
"x-tiwater-file-effect": false
|
|
18
|
+
},
|
|
19
|
+
"returnContent": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"const": false,
|
|
22
|
+
"description": "Optional compatibility flag for a uniform observation request. Only false is accepted because this tool always writes the complete result to output and never returns table content inline."
|
|
18
23
|
}
|
|
19
24
|
},
|
|
20
25
|
"required": ["input", "output"],
|
|
@@ -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.
|
|
5
|
+
"version": "0.21.62"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -174,11 +174,11 @@
|
|
|
174
174
|
"name": "docx_read_all_tables",
|
|
175
175
|
"providerContract": {
|
|
176
176
|
"source": "packages/docx-cli/contracts/mcp-input/docx_read_all_tables.schema.json",
|
|
177
|
-
"sha256": "
|
|
177
|
+
"sha256": "e9b2ff2d66c7574fa20216af908f41c22decf18edd14ed297e53f4c6599f5c60"
|
|
178
178
|
},
|
|
179
179
|
"inputContract": {
|
|
180
180
|
"path": "office/contracts/docx_read_all_tables.schema.json",
|
|
181
|
-
"sha256": "
|
|
181
|
+
"sha256": "e9b2ff2d66c7574fa20216af908f41c22decf18edd14ed297e53f4c6599f5c60"
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
{
|
package/office/index.mjs
CHANGED
|
@@ -608,7 +608,7 @@ const tools = [
|
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
name: 'docx_read_all_tables',
|
|
611
|
-
description: 'Read every native table from one current DOCX in document order. The document is opened once and the complete rows, cells, merge ownership, paragraphs, and text nodes are written to output. Only a compact receipt is returned. This tool does not select business tables or infer their meaning.',
|
|
611
|
+
description: 'Read every native table from one current DOCX in document order. The document is opened once and the complete rows, cells, merge ownership, paragraphs, and text nodes are written to output. Only a compact receipt is returned. The optional compatibility argument returnContent may only be false; true is unsupported because table content is never returned inline. This tool does not select business tables or infer their meaning.',
|
|
612
612
|
inputSchema: inputContract('docx_read_all_tables'),
|
|
613
613
|
outputSchema: docxReadAllTablesOutput,
|
|
614
614
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -633,7 +633,7 @@ const tools = [
|
|
|
633
633
|
{
|
|
634
634
|
name: 'docx_set_text',
|
|
635
635
|
effectKind: 'document-mutation',
|
|
636
|
-
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.',
|
|
636
|
+
description: 'Replace the whole text content of paragraph or cell objects, or one exact text node, observed from this exact input DOCX while retaining target formatting, bookmarks, spans, and vertical merges. A text-node target replaces only that node and preserves every surrounding native sibling. 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; paragraph or cell 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.',
|
|
637
637
|
inputSchema: inputContract('docx_set_text'),
|
|
638
638
|
outputSchema: fixedEditOutput('docx_set_text'),
|
|
639
639
|
handler: async (args, tool) => fixedEdit(tool, await resolveFileBackedChanges(args), docxCandidates),
|
package/package.json
CHANGED