@tiwater/office-mcp 0.21.9 → 0.21.10
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
|
@@ -417,7 +417,7 @@ const tools = [
|
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
name: 'docx_set_text',
|
|
420
|
-
description: 'Replace the whole text content of
|
|
420
|
+
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. 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. This sets already-derived text; it does not insert objects, change table structure, copy source formatting, or decide business wording.',
|
|
421
421
|
inputSchema: inputContract('docx_set_text'),
|
|
422
422
|
outputSchema: fixedEditOutput('docx_set_text'),
|
|
423
423
|
handler: args => fixedEdit('docx_set_text', args),
|
|
@@ -640,7 +640,7 @@ function buildServer() {
|
|
|
640
640
|
const server = new McpServer(
|
|
641
641
|
{ name: 'tiwater-office', version: packageMetadata.version },
|
|
642
642
|
{
|
|
643
|
-
instructions: 'Use these tools only for generic Office observation, conversion, editing, validation, and native rendering. Callers own all selected objects, values, and business decisions. A read-only output path is an immutable artifact identity: an identical request may replay it; every different request uses a different path. Every mutation receiptOutput is a new immutable receipt identity for that exact call and must use a path that has never been used, including when the same document object is updated again.',
|
|
643
|
+
instructions: 'Use these tools only for generic Office observation, conversion, editing, validation, and native rendering. Callers own all selected objects, values, and business decisions. Every native DOCX address belongs only to the exact input file whose observation returned it and must not be reused with another DOCX. A read-only output path is an immutable artifact identity: an identical request may replay it; every different request uses a different path. Every mutation receiptOutput is a new immutable receipt identity for that exact call and must use a path that has never been used, including when the same document object is updated again.',
|
|
644
644
|
},
|
|
645
645
|
);
|
|
646
646
|
for (const tool of tools) {
|