Skip to main content
Glama

docx-exportJson

Retrieve the JSON model of a Word document by its ID using the DOCX MCP Server. Simplify document data extraction for further processing or analysis.

Instructions

Return the current JSON model for a given id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • Handler implementation for the 'docx-exportJson' tool. Parses the input arguments using the tool's inputSchema, retrieves the document from the DocRegistry using the provided id, checks if the document exists, and returns the document's JSON content.
    case "docx-exportJson": { const { id } = parseArgs<{ id: string }>(args, tools["docx-exportJson"].inputSchema); const doc = registry.get(id); if (!doc) throw new McpError(ErrorCode.InvalidParams, `doc not found: ${id}`); return ok(doc.json); }
  • src/index.ts:81-84 (registration)
    Tool registration entry for 'docx-exportJson', including its description and input schema definition. This is part of the tools object used for listing tools and validating inputs.
    "docx-exportJson": { description: "Return the current JSON model for a given id.", inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } } }
  • Input schema for the 'docx-exportJson' tool, defining that it requires a string 'id' parameter.
    inputSchema: { type: "object", required: ["id"], properties: { id: { type: "string" } } }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lihongjie0209/docx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server