@tiwater/office-mcp 0.20.2 → 0.20.3
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
|
@@ -339,7 +339,7 @@ const tools = [
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
name: 'docx_read_table',
|
|
342
|
-
description: 'Read exactly one table selected from docx_table_index by native OpenXML address. Each call retains full paragraph and text-node detail for exactly the returned row page at output; it never builds another whole-table data object. The machine response is the compact form of that page: each row and cell keeps its reusable native address, grid position and span, vertical-merge owner, physical text, and logical text. In a vertical merge, restart begins one logical cell and a continue cell is not an independent row value: logicalText resolves the restart cell value while text remains the physical cell value.
|
|
342
|
+
description: 'Read exactly one table selected from docx_table_index by native OpenXML address. Each call retains full paragraph and text-node detail for exactly the returned row page at output; it never builds another whole-table data object. The machine response is the compact form of that page: each row and cell keeps its reusable native address, grid position and span, vertical-merge owner, physical text, and logical text. In a vertical merge, restart begins one logical cell and a continue cell is not an independent row value: logicalText resolves the restart cell value while text remains the physical cell value. A table observation is complete only when receipt.remaining is 0; process each page once in ascending receipt.nextOffset order. Use docx_read_object only when one selected object needs a narrower descendant view. The provider reports physical structure only; the Agent decides the template and business meaning.',
|
|
343
343
|
inputSchema: inputContract('docx_read_table'),
|
|
344
344
|
outputSchema: docxTableReadOutput,
|
|
345
345
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -347,7 +347,7 @@ const tools = [
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
name: 'docx_copy_content',
|
|
350
|
-
description: 'Replace content in existing plain-text target paragraphs or cells while retaining target container formatting
|
|
350
|
+
description: 'Replace content in existing plain-text target paragraphs or cells while retaining target container formatting. A whole-object selection copies only that object\'s inline content; a range copies an exact substring from a run or text address. Source table, row, cell, span, and merge structure are not copied.',
|
|
351
351
|
inputSchema: inputContract('docx_copy_content'),
|
|
352
352
|
outputSchema: fixedEditOutput('docx_copy_content'),
|
|
353
353
|
handler: args => fixedEdit('docx_copy_content', args),
|