@tiwater/office-mcp 0.17.27 → 0.17.29
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/index.mjs
CHANGED
|
@@ -173,13 +173,6 @@ 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()),
|
|
183
176
|
openingParagraphs: z.array(z.object({
|
|
184
177
|
ref: z.string().regex(/^dox1_[0-9a-f]{64}$/),
|
|
185
178
|
textPreview: z.string().min(1).max(240),
|
|
@@ -248,7 +241,7 @@ const docxReadObjectOutput = artifactOutput('docx_read_object').extend({
|
|
|
248
241
|
const tools = [
|
|
249
242
|
{
|
|
250
243
|
name: 'docx_inspect',
|
|
251
|
-
description: 'Inspect one current DOCX. The response returns
|
|
244
|
+
description: 'Inspect one current DOCX and retain its complete machine observation at output. The response returns the current revision, observation artifact, table count, and up to six opening non-empty body paragraphs for document identity. Use bounded list, find, and read operations for selected document objects.',
|
|
252
245
|
inputSchema: inputContract('docx_inspect'),
|
|
253
246
|
outputSchema: docxInspectionOutput('docx_inspect'),
|
|
254
247
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -528,13 +521,6 @@ function compactDocxInspection(report) {
|
|
|
528
521
|
revision: report.tables.revision,
|
|
529
522
|
summary: {
|
|
530
523
|
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
524
|
openingParagraphs,
|
|
539
525
|
},
|
|
540
526
|
};
|