@tiwater/office-mcp 0.15.6 → 0.15.8
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_export_json.schema.json +1 -1
- package/office/contracts/docx_find_literal.schema.json +6 -0
- package/office/contracts/docx_inspect.schema.json +1 -1
- package/office/contracts/docx_list_objects.schema.json +5 -0
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +9 -9
- package/office/index.mjs +4 -4
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"output": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"minLength": 1,
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Absolute path for a new JSON artifact inside the caller-authorized output directory. Existing files are never overwritten.",
|
|
14
14
|
"x-tiwater-file-role": "write"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -24,9 +24,15 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"scope": {
|
|
27
|
+
"description": "Exact story-part URI such as /word/document.xml.",
|
|
27
28
|
"type": "string",
|
|
28
29
|
"minLength": 1
|
|
29
30
|
},
|
|
31
|
+
"parentRef": {
|
|
32
|
+
"description": "Optional revision-bound parent object ref. Searches only its nearest published child objects, not every recursive descendant.",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^dox1_[0-9a-f]{64}$"
|
|
35
|
+
},
|
|
30
36
|
"limit": {
|
|
31
37
|
"default": 100,
|
|
32
38
|
"type": "integer",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"output": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"minLength": 1,
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Absolute path for a new JSON artifact inside the caller-authorized output directory. Existing files are never overwritten.",
|
|
14
14
|
"x-tiwater-file-role": "write"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"type": "string",
|
|
26
26
|
"minLength": 1
|
|
27
27
|
},
|
|
28
|
+
"parentRef": {
|
|
29
|
+
"description": "Optional revision-bound parent object ref. Returns only its nearest published child objects: a part yields top-level story blocks, a table yields rows, a row yields cells. This is not recursive descendant search.",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^dox1_[0-9a-f]{64}$"
|
|
32
|
+
},
|
|
28
33
|
"limit": {
|
|
29
34
|
"description": "Maximum objects in this page. Follow continuation for another bounded page; do not raise the limit to replace semantic filtering.",
|
|
30
35
|
"default": 100,
|
|
@@ -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.15.
|
|
5
|
+
"version": "0.15.8"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -130,22 +130,22 @@
|
|
|
130
130
|
"name": "docx_export_json",
|
|
131
131
|
"providerContract": {
|
|
132
132
|
"source": "packages/docx-cli/contracts/mcp-input/docx_export_json.schema.json",
|
|
133
|
-
"sha256": "
|
|
133
|
+
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
134
134
|
},
|
|
135
135
|
"inputContract": {
|
|
136
136
|
"path": "office/contracts/docx_export_json.schema.json",
|
|
137
|
-
"sha256": "
|
|
137
|
+
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"name": "docx_find_literal",
|
|
142
142
|
"providerContract": {
|
|
143
143
|
"source": "packages/docx-cli/contracts/mcp-input/docx_find_literal.schema.json",
|
|
144
|
-
"sha256": "
|
|
144
|
+
"sha256": "f0df9a19d99db372a0c125b966b00d76161cc734581e2da3d4636b058c2e27d9"
|
|
145
145
|
},
|
|
146
146
|
"inputContract": {
|
|
147
147
|
"path": "office/contracts/docx_find_literal.schema.json",
|
|
148
|
-
"sha256": "
|
|
148
|
+
"sha256": "f0df9a19d99db372a0c125b966b00d76161cc734581e2da3d4636b058c2e27d9"
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -207,11 +207,11 @@
|
|
|
207
207
|
"name": "docx_inspect",
|
|
208
208
|
"providerContract": {
|
|
209
209
|
"source": "packages/docx-cli/contracts/mcp-input/docx_inspect.schema.json",
|
|
210
|
-
"sha256": "
|
|
210
|
+
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
211
211
|
},
|
|
212
212
|
"inputContract": {
|
|
213
213
|
"path": "office/contracts/docx_inspect.schema.json",
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
{
|
|
@@ -229,11 +229,11 @@
|
|
|
229
229
|
"name": "docx_list_objects",
|
|
230
230
|
"providerContract": {
|
|
231
231
|
"source": "packages/docx-cli/contracts/mcp-input/docx_list_objects.schema.json",
|
|
232
|
-
"sha256": "
|
|
232
|
+
"sha256": "ea8152a6b44eacda63688680d91b758efa3e2a55b92de24eeb977951fda8f720"
|
|
233
233
|
},
|
|
234
234
|
"inputContract": {
|
|
235
235
|
"path": "office/contracts/docx_list_objects.schema.json",
|
|
236
|
-
"sha256": "
|
|
236
|
+
"sha256": "ea8152a6b44eacda63688680d91b758efa3e2a55b92de24eeb977951fda8f720"
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
{
|
package/office/index.mjs
CHANGED
|
@@ -191,7 +191,7 @@ function artifactOutput(tool) {
|
|
|
191
191
|
const tools = [
|
|
192
192
|
{
|
|
193
193
|
name: 'docx_inspect',
|
|
194
|
-
description: '
|
|
194
|
+
description: 'Write the default single full-document DOCX observation containing body content, structure, placeholders, comments, anchors, tables, fields, flow, fonts, and formatting metrics. Do not also call docx_export_json for the same observation.',
|
|
195
195
|
inputSchema: inputContract('docx_inspect'),
|
|
196
196
|
outputSchema: artifactOutput('docx_inspect'),
|
|
197
197
|
handler: docxInspect,
|
|
@@ -206,14 +206,14 @@ const tools = [
|
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
name: 'docx_list_objects',
|
|
209
|
-
description: 'List one bounded page of revision-bound native DOCX objects by kind.
|
|
209
|
+
description: 'List one bounded page of revision-bound native DOCX objects by kind. Use parentRef to return only the nearest published children of a selected object: a part yields top-level story blocks and a table yields rows. Without parentRef the request is story-wide; scope is only an exact story-part URI.',
|
|
210
210
|
inputSchema: inputContract('docx_list_objects'),
|
|
211
211
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
212
212
|
handler: args => docxObservation('docx_list_objects', args),
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
name: 'docx_find_literal',
|
|
216
|
-
description: 'Find
|
|
216
|
+
description: 'Find exact current text in revision-bound native DOCX objects with bounded paging. Use parentRef to search only the nearest published children of a selected part, table, row, cell, or paragraph; this is not recursive descendant search.',
|
|
217
217
|
inputSchema: inputContract('docx_find_literal'),
|
|
218
218
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
219
219
|
handler: args => docxObservation('docx_find_literal', args),
|
|
@@ -241,7 +241,7 @@ const tools = [
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
name: 'docx_export_json',
|
|
244
|
-
description: '
|
|
244
|
+
description: 'Write a body-only DOCX JSON projection only when a downstream consumer explicitly requires that format. It is not a companion to docx_inspect and does not replace bounded list/find/read object selection.',
|
|
245
245
|
inputSchema: inputContract('docx_export_json'),
|
|
246
246
|
outputSchema: artifactOutput('docx_export_json'),
|
|
247
247
|
handler: docxExportJson,
|