@tiwater/office-mcp 0.17.12 → 0.17.14
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.
|
@@ -7,20 +7,23 @@
|
|
|
7
7
|
"minLength": 1,
|
|
8
8
|
"x-tiwater-file-role": "read"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
"description": "Open XML object
|
|
12
|
-
"type": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
"kinds": {
|
|
11
|
+
"description": "Open XML object kinds to list in native document order. Request paragraph and table together when their adjacency carries meaning. Returned parentRef is the valid targetParentRef for inserting beside that object.",
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"paragraph",
|
|
17
|
+
"table",
|
|
18
|
+
"gridColumn",
|
|
19
|
+
"row",
|
|
20
|
+
"cell",
|
|
21
|
+
"run",
|
|
22
|
+
"text",
|
|
23
|
+
"drawing"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"minItems": 1
|
|
24
27
|
},
|
|
25
28
|
"scope": {
|
|
26
29
|
"description": "Exact story-part URI such as /word/document.xml. This is not a table nativePath or ancestor filter.",
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
"minLength": 1
|
|
29
32
|
},
|
|
30
33
|
"parentRef": {
|
|
31
|
-
"description": "Optional revision-bound parent object ref. Returns only its nearest published child objects;
|
|
34
|
+
"description": "Optional revision-bound parent object ref. Returns only its nearest published child objects; when omitted, returns nearest children of each selected story part. This is never recursive descendant search.",
|
|
32
35
|
"type": "string",
|
|
33
36
|
"pattern": "^dox1_[0-9a-f]{64}$"
|
|
34
37
|
},
|
|
@@ -52,7 +55,7 @@
|
|
|
52
55
|
},
|
|
53
56
|
"required": [
|
|
54
57
|
"input",
|
|
55
|
-
"
|
|
58
|
+
"kinds",
|
|
56
59
|
"output"
|
|
57
60
|
],
|
|
58
61
|
"additionalProperties": false,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"targetRef": {
|
|
22
22
|
"type": "string",
|
|
23
23
|
"pattern": "^dox1_[0-9a-f]{64}$",
|
|
24
|
-
"description": "Observed
|
|
24
|
+
"description": "Observed paragraph or cell ref whose whole text content is replaced. Bookmarks and target formatting are preserved; tabs and line breaks are written as native OpenXML text controls. Targets containing fields, drawings, nested tables, controls, links, or other non-text content are rejected."
|
|
25
25
|
},
|
|
26
26
|
"text": { "type": "string" }
|
|
27
27
|
},
|
|
@@ -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.14"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
"name": "docx_list_objects",
|
|
120
120
|
"providerContract": {
|
|
121
121
|
"source": "packages/docx-cli/contracts/mcp-input/docx_list_objects.schema.json",
|
|
122
|
-
"sha256": "
|
|
122
|
+
"sha256": "c1a0742b914608044ba017c9bf968fe59f0864761ea54be6c31c9679c69085a3"
|
|
123
123
|
},
|
|
124
124
|
"inputContract": {
|
|
125
125
|
"path": "office/contracts/docx_list_objects.schema.json",
|
|
126
|
-
"sha256": "
|
|
126
|
+
"sha256": "c1a0742b914608044ba017c9bf968fe59f0864761ea54be6c31c9679c69085a3"
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -174,11 +174,11 @@
|
|
|
174
174
|
"name": "docx_set_text",
|
|
175
175
|
"providerContract": {
|
|
176
176
|
"source": "packages/docx-cli/contracts/mcp-input/docx_set_text.schema.json",
|
|
177
|
-
"sha256": "
|
|
177
|
+
"sha256": "f66adf07e6e53599d93ad29420d7a977d869371ef3e0759a128fb2333f8daf08"
|
|
178
178
|
},
|
|
179
179
|
"inputContract": {
|
|
180
180
|
"path": "office/contracts/docx_set_text.schema.json",
|
|
181
|
-
"sha256": "
|
|
181
|
+
"sha256": "f66adf07e6e53599d93ad29420d7a977d869371ef3e0759a128fb2333f8daf08"
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
{
|
package/office/index.mjs
CHANGED
|
@@ -249,7 +249,7 @@ const tools = [
|
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
name: 'docx_list_objects',
|
|
252
|
-
description: 'List one small page of revision-bound nearest-child identities and retain the exact page at output for later reuse. Use parentRef to restrict
|
|
252
|
+
description: 'List one small page of revision-bound nearest-child identities in native document order and retain the exact page at output for later reuse. Without parentRef, returns nearest children of each selected story part; request paragraph and table together when a heading, caption, or summary identifies the following table. Use parentRef to restrict another container, such as a table or row; use docx_find_literal when selecting by text.',
|
|
253
253
|
inputSchema: inputContract('docx_list_objects'),
|
|
254
254
|
outputSchema: docxListObjectsOutput,
|
|
255
255
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -280,7 +280,7 @@ const tools = [
|
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
name: 'docx_set_text',
|
|
283
|
-
description: 'Replace the whole text content of observed
|
|
283
|
+
description: 'Replace the whole text content of observed paragraph or cell objects while retaining target formatting and bookmarks. 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, copy source formatting, or decide business wording.',
|
|
284
284
|
inputSchema: inputContract('docx_set_text'),
|
|
285
285
|
outputSchema: fixedEditOutput('docx_set_text'),
|
|
286
286
|
handler: args => fixedEdit('docx_set_text', args),
|