@tiwater/office-mcp 0.17.24 → 0.17.26

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.
@@ -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.24"
5
+ "version": "0.17.26"
6
6
  },
7
7
  "tools": [
8
8
  {
package/office/index.mjs CHANGED
@@ -272,7 +272,7 @@ const tools = [
272
272
  },
273
273
  {
274
274
  name: 'docx_read_object',
275
- description: 'Read one selected native DOCX object and requested descendants. For a table, read row, cell, and paragraph descendants first. To select exact inline content, make a second read rooted at the observed cell or paragraph and request run or text; table-rooted inline reads are rejected so one call cannot return the document-wide character tree.',
275
+ description: 'Read one selected native DOCX row, cell, or paragraph and requested descendants. For a table, page its row identities with docx_list_objects, then read only the current row. To select exact inline content, make a second read rooted at the observed cell or paragraph and request run or text.',
276
276
  inputSchema: inputContract('docx_read_object'),
277
277
  outputSchema: docxReadObjectOutput,
278
278
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -619,9 +619,8 @@ async function docxReadObject(args) {
619
619
  const { output: _output, ...request } = args;
620
620
  return withTempJsonFile(request, async requestPath => {
621
621
  const result = await runJsonCandidateChain(docxCandidates, ['docx_read_object', requestPath]);
622
- if (result.json?.observation?.object?.kind === 'table'
623
- && args.kinds.some(kind => kind === 'run' || kind === 'text')) {
624
- throw new Error('docx-table-inline-detail-requires-cell-or-paragraph-root');
622
+ if (result.json?.observation?.object?.kind === 'table') {
623
+ throw new Error('docx-table-read-requires-paged-row-selection');
625
624
  }
626
625
  return {
627
626
  tool: 'docx_read_object',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.17.24",
3
+ "version": "0.17.26",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",