create_workbook_from_xml
Builds an Excel workbook from XML that matches the server's schema, saving it to a specified path. Use it to convert XML reports or XSLT output into .xlsx files without needing .NET or OOXML expertise.
Instructions
Builds a new Excel workbook from XML matching Kookerella.FsOpenXmlDsl's own embedded schema (Xml.xsd) and saves it to disk - the inverse of generate_xml. The natural target for a caller that already produces data as XML (e.g. an XSLT pipeline generating a report) and wants to reach Excel without learning the OOXML schema, this library's own F#/C# API, or needing .NET installed at all - like generate_xml, 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 fsopenxmldsl-mcp build from a plain shell. Covers the same worksheet/workbook-level feature set generate_xml does; unlike create_workbook, this isn't limited to plain cell values - styling, tables, charts, and every other modeled feature can be expressed in the XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The workbook XML content - a <workbook> root element matching Xml.xsd. | |
| path | Yes | Output file path, e.g. "C:\reports\invoice.xlsx". The directory must already exist. |