@tiwater/office-mcp 0.17.13 → 0.17.15

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.
@@ -6,10 +6,9 @@
6
6
  "targetDocument": {
7
7
  "type": "object",
8
8
  "properties": {
9
- "input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" },
10
- "revision": { "type": "string", "pattern": "^docx-rev-v1-[0-9a-f]{64}$" }
9
+ "input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" }
11
10
  },
12
- "required": ["input", "revision"],
11
+ "required": ["input"],
13
12
  "additionalProperties": false
14
13
  },
15
14
  "changes": {
@@ -32,10 +31,9 @@
32
31
  "sourceDocument": {
33
32
  "type": "object",
34
33
  "properties": {
35
- "input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" },
36
- "revision": { "type": "string", "pattern": "^docx-rev-v1-[0-9a-f]{64}$" }
34
+ "input": { "type": "string", "minLength": 1, "x-tiwater-file-role": "read" }
37
35
  },
38
- "required": ["input", "revision"],
36
+ "required": ["input"],
39
37
  "additionalProperties": false
40
38
  },
41
39
  "sourceTableRef": { "type": "string", "pattern": "^dox1_[0-9a-f]{64}$" },
@@ -7,20 +7,23 @@
7
7
  "minLength": 1,
8
8
  "x-tiwater-file-role": "read"
9
9
  },
10
- "kind": {
11
- "description": "Open XML object kind to list. Returned parentRef is the valid targetParentRef for inserting beside that object.",
12
- "type": "string",
13
- "enum": [
14
- "part",
15
- "paragraph",
16
- "table",
17
- "gridColumn",
18
- "row",
19
- "cell",
20
- "run",
21
- "text",
22
- "drawing"
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; this is not recursive descendant search.",
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
- "kind",
58
+ "kinds",
56
59
  "output"
57
60
  ],
58
61
  "additionalProperties": false,
@@ -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.13"
5
+ "version": "0.17.15"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -64,11 +64,11 @@
64
64
  "name": "docx_copy_table_rows",
65
65
  "providerContract": {
66
66
  "source": "packages/docx-cli/contracts/mcp-input/docx_copy_table_rows.schema.json",
67
- "sha256": "15418038e4478aad8a9244d29a2ccf8578df10a3769836db8381a2e58d0f6b4c"
67
+ "sha256": "1882b28d7727a50b06dde1a86996fca839da452f82fd7f3ae9e6f61cc88462b7"
68
68
  },
69
69
  "inputContract": {
70
70
  "path": "office/contracts/docx_copy_table_rows.schema.json",
71
- "sha256": "15418038e4478aad8a9244d29a2ccf8578df10a3769836db8381a2e58d0f6b4c"
71
+ "sha256": "1882b28d7727a50b06dde1a86996fca839da452f82fd7f3ae9e6f61cc88462b7"
72
72
  }
73
73
  },
74
74
  {
@@ -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": "5aff2a708172ea8ccba630e5fe3c42314ca3db3d333fcf001d69df87568c18fa"
122
+ "sha256": "c1a0742b914608044ba017c9bf968fe59f0864761ea54be6c31c9679c69085a3"
123
123
  },
124
124
  "inputContract": {
125
125
  "path": "office/contracts/docx_list_objects.schema.json",
126
- "sha256": "5aff2a708172ea8ccba630e5fe3c42314ca3db3d333fcf001d69df87568c18fa"
126
+ "sha256": "c1a0742b914608044ba017c9bf968fe59f0864761ea54be6c31c9679c69085a3"
127
127
  }
128
128
  },
129
129
  {
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 any container, such as body paragraphs, table rows, or row cells; use docx_find_literal when selecting by text.',
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.17.13",
3
+ "version": "0.17.15",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",