@tiwater/office-mcp 0.21.48 → 0.21.49
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/contracts/docx_delete_comments.schema.json +31 -0
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +12 -1
- package/office/index.mjs +8 -0
- package/package.json +1 -1
- package/pdf/contracts/tiwater-pdf-provider-contract-manifest-v1.json +1 -1
- package/text/contracts/tiwater-text-provider-contract-manifest-v1.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "tiwater.office-mcp-input/docx_delete_comments",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"input": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"x-tiwater-file-role": "read",
|
|
10
|
+
"x-tiwater-document-revision-role": "current"
|
|
11
|
+
},
|
|
12
|
+
"output": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Output DOCX path; may equal input for an atomic in-place update.",
|
|
16
|
+
"x-tiwater-file-role": "write"
|
|
17
|
+
},
|
|
18
|
+
"receiptOutput": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"x-tiwater-file-role": "write",
|
|
22
|
+
"x-tiwater-file-effect": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"input",
|
|
27
|
+
"output",
|
|
28
|
+
"receiptOutput"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
@@ -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.21.
|
|
5
|
+
"version": "0.21.49"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -49,6 +49,17 @@
|
|
|
49
49
|
"sha256": "1cf22a23fc5d8b27fff6f50db2672be623696eac79ea986053e703274eab5e3e"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"name": "docx_delete_comments",
|
|
54
|
+
"providerContract": {
|
|
55
|
+
"source": "packages/docx-cli/contracts/mcp-input/docx_delete_comments.schema.json",
|
|
56
|
+
"sha256": "7f0828426b1f7c53a39dab1789572d49415a5a59980729a07726f662c1fb43de"
|
|
57
|
+
},
|
|
58
|
+
"inputContract": {
|
|
59
|
+
"path": "office/contracts/docx_delete_comments.schema.json",
|
|
60
|
+
"sha256": "7f0828426b1f7c53a39dab1789572d49415a5a59980729a07726f662c1fb43de"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
52
63
|
{
|
|
53
64
|
"name": "docx_delete_object",
|
|
54
65
|
"providerContract": {
|
package/office/index.mjs
CHANGED
|
@@ -602,6 +602,14 @@ const tools = [
|
|
|
602
602
|
outputSchema: fixedEditOutput('docx_replace_content_from_source'),
|
|
603
603
|
handler: async (args, tool) => fixedEdit(tool, await resolveFileBackedChanges(args), docxCandidates),
|
|
604
604
|
},
|
|
605
|
+
{
|
|
606
|
+
name: 'docx_delete_comments',
|
|
607
|
+
effectKind: 'document-mutation',
|
|
608
|
+
description: 'Atomically remove all Word comments, their anchors, and comment metadata parts from one current DOCX while preserving visible body, header, footer, footnote, endnote, table, field, and drawing content. This does not accept selected comment ids, change visible document wording, or decide whether comments are business content.',
|
|
609
|
+
inputSchema: inputContract('docx_delete_comments'),
|
|
610
|
+
outputSchema: fixedEditOutput('docx_delete_comments'),
|
|
611
|
+
handler: (args, tool) => fixedEdit(tool, args, docxCandidates),
|
|
612
|
+
},
|
|
605
613
|
{
|
|
606
614
|
name: 'docx_set_text',
|
|
607
615
|
effectKind: 'document-mutation',
|
package/package.json
CHANGED