docx-queryMeta
Extract metadata from DOCX files using a document ID with this efficient tool. Simplify document management and retrieval for streamlined workflows.
Instructions
Get docx metadata by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:174-177 (handler)MCP tool handler for 'docx-queryMeta': parses input arguments using the tool's inputSchema and delegates to DocRegistry.queryMeta(id) via the registry instance.case "docx-queryMeta": { const { id } = parseArgs<{ id: string }>(args, tools["docx-queryMeta"].inputSchema); return ok(registry.queryMeta(id)); }
- src/index.ts:49-52 (registration)Tool registration in the tools object, including description and input schema definition."docx-queryMeta": { description: "Get docx metadata by id.", inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } } },
- src/index.ts:51-51 (schema)Input schema for the 'docx-queryMeta' tool: requires a string 'id'.inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } }
- src/docx-utils.ts:185-193 (helper)DocRegistry.queryMeta implementation: retrieves the managed document by id and returns its metadata (id, timestamps, and json.meta).queryMeta(id: DocId) { const cur = this.require(id); return { id: cur.id, createdAt: cur.createdAt, updatedAt: cur.updatedAt, meta: cur.json.meta ?? {} }; }