@tiwater/office-mcp 0.17.23 → 0.17.25
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.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"tables": {
|
|
16
16
|
"type": "array",
|
|
17
|
-
"description": "
|
|
17
|
+
"description": "One or more table replacements for targetDocument. Each item may use a different source document.",
|
|
18
18
|
"minItems": 1,
|
|
19
19
|
"items": {
|
|
20
20
|
"type": "object",
|
|
@@ -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.17.
|
|
5
|
+
"version": "0.17.25"
|
|
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": "
|
|
166
|
+
"sha256": "dc0afe9a4be1974744df80d7d6b920034f0fa78f79ea18b2844eb67d69ecac5f"
|
|
167
167
|
},
|
|
168
168
|
"inputContract": {
|
|
169
169
|
"path": "office/contracts/docx_replace_table_rows.schema.json",
|
|
170
|
-
"sha256": "
|
|
170
|
+
"sha256": "dc0afe9a4be1974744df80d7d6b920034f0fa78f79ea18b2844eb67d69ecac5f"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
{
|
package/office/index.mjs
CHANGED
|
@@ -272,7 +272,7 @@ const tools = [
|
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
name: 'docx_read_object',
|
|
275
|
-
description: 'Read one selected native DOCX
|
|
275
|
+
description: 'Read one selected native DOCX row, cell, or paragraph and requested descendants. For a table, page its row identities with docx_list_objects, then read only the current row. To select exact inline content, make a second read rooted at the observed cell or paragraph and request run or text.',
|
|
276
276
|
inputSchema: inputContract('docx_read_object'),
|
|
277
277
|
outputSchema: docxReadObjectOutput,
|
|
278
278
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -294,7 +294,7 @@ const tools = [
|
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
name: 'docx_replace_table_rows',
|
|
297
|
-
description: 'Replace
|
|
297
|
+
description: 'Replace one or more data-row ranges in one current target document. targetDocument appears once; each tables item binds one source document and its source and target rows. All source-cell paragraphs copy by default; sourceCellContents selects exact observed content that the target keeps.',
|
|
298
298
|
inputSchema: inputContract('docx_replace_table_rows'),
|
|
299
299
|
outputSchema: fixedEditOutput('docx_replace_table_rows'),
|
|
300
300
|
handler: args => fixedEdit('docx_replace_table_rows', args),
|
|
@@ -619,9 +619,8 @@ async function docxReadObject(args) {
|
|
|
619
619
|
const { output: _output, ...request } = args;
|
|
620
620
|
return withTempJsonFile(request, async requestPath => {
|
|
621
621
|
const result = await runJsonCandidateChain(docxCandidates, ['docx_read_object', requestPath]);
|
|
622
|
-
if (result.json?.observation?.object?.kind === 'table'
|
|
623
|
-
|
|
624
|
-
throw new Error('docx-table-inline-detail-requires-cell-or-paragraph-root');
|
|
622
|
+
if (result.json?.observation?.object?.kind === 'table') {
|
|
623
|
+
throw new Error('docx-table-read-requires-paged-row-selection');
|
|
625
624
|
}
|
|
626
625
|
return {
|
|
627
626
|
tool: 'docx_read_object',
|