docx-queryMeta
Retrieve metadata from a Word document by its ID. Access document properties and details programmatically.
Instructions
Get docx metadata by id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:49-52 (registration)Tool registration/definition for 'docx-queryMeta' in the tools dictionary with description and inputSchema.
"docx-queryMeta": { description: "Get docx metadata by id.", inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } } }, - src/index.ts:174-177 (handler)Handler for 'docx-queryMeta' tool: parses args for 'id' and calls registry.queryMeta(id).
case "docx-queryMeta": { const { id } = parseArgs<{ id: string }>(args, tools["docx-queryMeta"].inputSchema); return ok(registry.queryMeta(id)); } - src/index.ts:49-52 (schema)Input schema for 'docx-queryMeta' tool: requires 'id' (string).
"docx-queryMeta": { description: "Get docx metadata by id.", inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } } }, - src/docx-utils.ts:185-193 (helper)The DocRegistry.queryMeta() method: retrieves the managed doc by ID and returns its id, createdAt, updatedAt, and meta object.
queryMeta(id: DocId) { const cur = this.require(id); return { id: cur.id, createdAt: cur.createdAt, updatedAt: cur.updatedAt, meta: cur.json.meta ?? {} }; }