generate_fsharp_script
Convert an existing Excel workbook into a self-contained F# script that rebuilds an equivalent file with dotnet fsi, revealing structure and enabling full feature customization.
Instructions
Reads an existing Excel workbook and returns a self-contained F# script (using Kookerella.FsOpenXmlDsl) that rebuilds an equivalent file when run via dotnet fsi. Useful for explaining how a file is structured, or as a starting point for a caller who wants the library's full feature set (styling, tables, charts, pivot tables, etc.) beyond what create_workbook exposes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an existing .xlsx/.xlsm file to reverse-engineer into F# source. | |
| outputFileName | Yes | The output filename the generated script should save its rebuilt file to, e.g. "output.xlsx". |