@tiwater/office-mcp 0.16.3 → 0.16.5

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.
@@ -53,11 +53,13 @@
53
53
  },
54
54
  "targetParentRef": {
55
55
  "type": "string",
56
- "pattern": "^dox1_[0-9a-f]{64}$"
56
+ "pattern": "^dox1_[0-9a-f]{64}$",
57
+ "description": "Revision-bound parent ref returned as parentRef on its direct children."
57
58
  },
58
59
  "beforeRef": {
59
60
  "type": "string",
60
- "pattern": "^dox1_[0-9a-f]{64}$"
61
+ "pattern": "^dox1_[0-9a-f]{64}$",
62
+ "description": "Optional direct child whose returned parentRef equals targetParentRef."
61
63
  },
62
64
  "repeat": {
63
65
  "type": "integer",
@@ -8,7 +8,7 @@
8
8
  "x-tiwater-file-role": "read"
9
9
  },
10
10
  "kind": {
11
- "description": "Open XML object kind to list. Use parentRef to walk only the native structure needed for the direct operation.",
11
+ "description": "Open XML object kind to list. Returned parentRef is the valid targetParentRef for inserting beside that object.",
12
12
  "type": "string",
13
13
  "enum": [
14
14
  "part",
@@ -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.16.3"
5
+ "version": "0.16.5"
6
6
  },
7
7
  "tools": [
8
8
  {
@@ -31,11 +31,11 @@
31
31
  "name": "docx_copy_object",
32
32
  "providerContract": {
33
33
  "source": "packages/docx-cli/contracts/mcp-input/docx_copy_object.schema.json",
34
- "sha256": "45d30d97ba58ece704beb352ea41b4105f64cf9f43f11e94b6fb3de52b0b5823"
34
+ "sha256": "5f0bfc826d68f451055aba20390686e0e0df2182797fc36ff285f42d09084104"
35
35
  },
36
36
  "inputContract": {
37
37
  "path": "office/contracts/docx_copy_object.schema.json",
38
- "sha256": "45d30d97ba58ece704beb352ea41b4105f64cf9f43f11e94b6fb3de52b0b5823"
38
+ "sha256": "5f0bfc826d68f451055aba20390686e0e0df2182797fc36ff285f42d09084104"
39
39
  }
40
40
  },
41
41
  {
@@ -97,11 +97,11 @@
97
97
  "name": "docx_list_objects",
98
98
  "providerContract": {
99
99
  "source": "packages/docx-cli/contracts/mcp-input/docx_list_objects.schema.json",
100
- "sha256": "7f0c3213addbeab2ff96579bcdd860ad65b8ae95c9e6b1e3fb7e5497f3e5a89d"
100
+ "sha256": "d8894a1b453fc780c1d2b355f34de27759a055ef6859333796665ac6439dd464"
101
101
  },
102
102
  "inputContract": {
103
103
  "path": "office/contracts/docx_list_objects.schema.json",
104
- "sha256": "7f0c3213addbeab2ff96579bcdd860ad65b8ae95c9e6b1e3fb7e5497f3e5a89d"
104
+ "sha256": "d8894a1b453fc780c1d2b355f34de27759a055ef6859333796665ac6439dd464"
105
105
  }
106
106
  },
107
107
  {
package/office/index.mjs CHANGED
@@ -154,21 +154,21 @@ const tools = [
154
154
  },
155
155
  {
156
156
  name: 'docx_list_objects',
157
- description: 'List one small page of revision-bound DOCX object identities for structure discovery, not selection by text. To select a table or row by any descendant cell text, call docx_find_literal with kind table or row instead of listing the document. Use parentRef for nearest children: 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.',
157
+ description: 'List one small page of revision-bound DOCX object identities for structure discovery, not selection by text. To select a table or row by any descendant cell text, call docx_find_literal with kind table or row instead of listing the document. After selecting a table or row, call docx_read_object once to obtain every descendant ref; do not list its rows and cells separately. Use parentRef only when nearest-child paging itself is the requested observation.',
158
158
  inputSchema: inputContract('docx_list_objects'),
159
159
  annotations: { readOnlyHint: true, idempotentHint: true },
160
160
  handler: args => docxObservation('docx_list_objects', args),
161
161
  },
162
162
  {
163
163
  name: 'docx_find_literal',
164
- description: 'Find exact current text in one small page of revision-bound native DOCX objects. With kind table or row, matching includes all descendant cell text, so no prior paragraph, cell, or document-wide list is needed. Use parentRef only to search nearest published children of a selected object.',
164
+ description: 'Find exact current text in one small page of revision-bound native DOCX objects. With kind table or row, matching includes all descendant cell text. After selecting a table or row, call docx_read_object once to obtain every descendant ref; do not list its rows and cells separately.',
165
165
  inputSchema: inputContract('docx_find_literal'),
166
166
  annotations: { readOnlyHint: true, idempotentHint: true },
167
167
  handler: args => docxObservation('docx_find_literal', args),
168
168
  },
169
169
  {
170
170
  name: 'docx_read_object',
171
- description: 'Write one selected revision-bound native DOCX object in full technical Open XML detail to a new JSON artifact. Use a table or row ref from list/find to inspect grid spans and merges without enumerating document-wide cells.',
171
+ description: 'Write one selected revision-bound native DOCX object, its Open XML, and every descendant object ref to a new JSON artifact. One table read provides all row, cell, paragraph, run, text, and drawing refs needed for mutation; do not enumerate those descendants with repeated list calls.',
172
172
  inputSchema: inputContract('docx_read_object'),
173
173
  outputSchema: artifactOutput('docx_read_object'),
174
174
  annotations: { readOnlyHint: true, idempotentHint: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.16.3",
3
+ "version": "0.16.5",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",