@tiwater/office-mcp 0.18.0 → 0.18.2
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.
|
@@ -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
|
+
"version": "0.18.2"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"name": "docx_copy_object",
|
|
54
54
|
"providerContract": {
|
|
55
55
|
"source": "packages/docx-cli/contracts/mcp-input/docx_copy_object.schema.json",
|
|
56
|
-
"sha256": "
|
|
56
|
+
"sha256": "5c76b96e7a56f10a2e2c14e5d40dfe40e44dc6b21c2265bbf54c06953703ac12"
|
|
57
57
|
},
|
|
58
58
|
"inputContract": {
|
|
59
59
|
"path": "office/contracts/docx_copy_object.schema.json",
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "5c76b96e7a56f10a2e2c14e5d40dfe40e44dc6b21c2265bbf54c06953703ac12"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
"name": "docx_list_objects",
|
|
98
98
|
"providerContract": {
|
|
99
99
|
"source": "packages/docx-cli/contracts/mcp-input/docx_list_objects.schema.json",
|
|
100
|
-
"sha256": "
|
|
100
|
+
"sha256": "37b32320e04584f837d36a5c90c726434ab875cdbf0840d2cd62dd98e93ae882"
|
|
101
101
|
},
|
|
102
102
|
"inputContract": {
|
|
103
103
|
"path": "office/contracts/docx_list_objects.schema.json",
|
|
104
|
-
"sha256": "
|
|
104
|
+
"sha256": "37b32320e04584f837d36a5c90c726434ab875cdbf0840d2cd62dd98e93ae882"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
{
|
package/office/index.mjs
CHANGED
|
@@ -239,7 +239,7 @@ const tools = [
|
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
name: 'docx_read_object',
|
|
242
|
-
description: 'Read selected rows, cells, or paragraphs from one native DOCX in one call and return them in address order. Pass the document path once and only the OpenXML addresses needed for the current target. For exact inline content, use an observed cell or paragraph address and request run or text.',
|
|
242
|
+
description: 'Read selected tables, rows, cells, or paragraphs from one native DOCX in one call and return them in address order. Pass the document path once and only the OpenXML addresses needed for the current target. For exact inline content, use an observed cell or paragraph address and request run or text.',
|
|
243
243
|
inputSchema: inputContract('docx_read_object'),
|
|
244
244
|
outputSchema: docxReadObjectOutput,
|
|
245
245
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -569,9 +569,6 @@ async function docxReadObject(args) {
|
|
|
569
569
|
const { output: _output, ...request } = args;
|
|
570
570
|
return withTempJsonFile(request, async requestPath => {
|
|
571
571
|
const result = await runJsonCandidateChain(docxCandidates, ['docx_read_object', requestPath]);
|
|
572
|
-
if (result.json?.observations?.some(observation => observation?.object?.kind === 'table')) {
|
|
573
|
-
throw new Error('docx-table-read-requires-paged-row-selection');
|
|
574
|
-
}
|
|
575
572
|
return {
|
|
576
573
|
tool: 'docx_read_object',
|
|
577
574
|
runtime: commandRuntime(result),
|