Convert file
sheet_convertConvert spreadsheet files between XLSX, CSV, and JSON formats without altering the original file. Specify source and target format to generate a new file with row and column counts.
Instructions
Call this tool to convert a sheet between excel (xlsx), csv and json. Writes a new file next to the source unless out_path is given; the source is never modified. Returns the new file path with its row and column counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format; the default out_path takes this as its extension | |
| path | Yes | Path to the source .xlsx/.xlsm/.xlsb/.ods/.csv/.tsv file (~ is expanded); it is never modified | |
| sheet | No | Sheet to convert; default is the first sheet. Only that one sheet is written | |
| out_path | No | Where to write; default is the source name with the new extension, next to the source. It must differ from the source path |