@tiwater/office-mcp 0.17.19 → 0.17.20

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.19"
5
+ "version": "0.17.20"
6
6
  },
7
7
  "tools": [
8
8
  {
package/office/index.mjs CHANGED
@@ -173,6 +173,13 @@ function docxInspectionOutput(tool) {
173
173
  revision: docxRevision,
174
174
  summary: z.object({
175
175
  tableCount: z.number().int().nonnegative(),
176
+ tables: z.array(z.object({
177
+ ref: z.string().regex(/^dox1_[0-9a-f]{64}$/),
178
+ parentRef: z.string().regex(/^dox1_[0-9a-f]{64}$/).nullable(),
179
+ rowCount: z.number().int().nonnegative(),
180
+ columnCount: z.number().int().nonnegative(),
181
+ textPreview: z.string().max(240),
182
+ }).strict()),
176
183
  openingParagraphs: z.array(z.object({
177
184
  ref: z.string().regex(/^dox1_[0-9a-f]{64}$/),
178
185
  textPreview: z.string().min(1).max(240),
@@ -241,7 +248,7 @@ const docxReadObjectOutput = artifactOutput('docx_read_object').extend({
241
248
  const tools = [
242
249
  {
243
250
  name: 'docx_inspect',
244
- description: 'Inspect one current DOCX. The response returns its revision, table count, and up to six opening non-empty body paragraphs with native refs for document identification and immediate reuse; use docx_find_literal for other text and docx_list_objects for container children. The complete inspection remains in the evidence artifact.',
251
+ description: 'Inspect one current DOCX. The response returns its revision, every table identity with shape and short text preview, and up to six opening non-empty body paragraphs. Reuse those native refs directly; use docx_find_literal only for text not exposed here and docx_list_objects only for container children. The complete inspection remains in the evidence artifact.',
245
252
  inputSchema: inputContract('docx_inspect'),
246
253
  outputSchema: docxInspectionOutput('docx_inspect'),
247
254
  annotations: { readOnlyHint: true, idempotentHint: true },
@@ -519,7 +526,17 @@ function compactDocxInspection(report) {
519
526
  }));
520
527
  return {
521
528
  revision: report.tables.revision,
522
- summary: { tableCount: report.tables.tables.length, openingParagraphs },
529
+ summary: {
530
+ tableCount: report.tables.tables.length,
531
+ tables: report.tables.tables.map(table => ({
532
+ ref: table.ref,
533
+ parentRef: table.parentRef,
534
+ rowCount: table.rowCount,
535
+ columnCount: table.columnCount,
536
+ textPreview: String(table.textPreview ?? '').trim().replace(/\s+/gu, ' ').slice(0, 240),
537
+ })),
538
+ openingParagraphs,
539
+ },
523
540
  };
524
541
  }
525
542
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.17.19",
3
+ "version": "0.17.20",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",