generate_xml
Reads a Word document and returns its structure as schema-validated XML, letting you inspect, transform, or archive it without F#/C# or .NET.
Instructions
Reads an existing Word document and returns it as XML, validated against Kookerella.FsWordDsl's own embedded schema (Xml.xsd). A plain-data alternative to generate_fsharp_script/generate_csharp_script for a caller who wants to inspect, transform (e.g. via XSLT), or archive a document's structure without any F#/C# source involved - and without any .NET runtime on the caller's side either: the .NET work happens inside this server, so Python, JavaScript, or any other language can call this tool directly, and a human with no MCP client at all can get the same result via fsworddsl-mcp convert <file> --lang xml from a plain shell. Unlike those two, this returns data, not a runnable script, so there is no output-filename parameter to control what a rebuild saves as. Covers the same section/paragraph-level feature set generate_fsharp_script does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an existing .docx/.docm file to convert to XML. |