create_document_from_json
Turn JSON into a Word document and save it to disk. This tool creates styled .docx files directly from JSON, skipping OOXML and .NET requirements.
Instructions
Builds a new Word document from JSON matching the shape generate_json produces (see the main library repo's Json.schema.json) and saves it to disk - the inverse of generate_json. The JSON-side equivalent of create_document_from_xml, for a caller that already produces data as JSON and wants to reach Word without learning the OOXML schema, this library's own F#/C# API, or needing .NET installed at all - the .NET work happens inside this server, so any language can call it directly, and a human with no MCP client at all can get the same result via fsworddsl-mcp build from a plain shell. Covers the same section/paragraph-level feature set generate_json does; unlike create_document, this isn't limited to plain paragraph text - named styles, tables, images, and every other modeled feature can be expressed in the JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The document JSON content - an object matching Json.schema.json's root shape. | |
| path | Yes | Output file path, e.g. "C:\reports\memo.docx". The directory must already exist. |