@tiwater/office-mcp 0.17.24 → 0.17.26
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/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 },
|
|
@@ -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',
|