Make a CSV file
make_csv_fileUse this when the user wants a CSV file, for example "put this table in a CSV", "make a spreadsheet file from these rows", "export this list as CSV for Excel". Pass columns (header names) and rows (each row has one cell per column; cells are text, numbers, true or false, or null), up to 2,000 rows and 100 columns. Optional: filename, excel_bom (start the file with a UTF-8 byte order mark so Excel reads accents) and escape_formulas (show cells starting with = + - or @ as text). Returns the CSV text, a download link that works for 24 hours, its expiry and the row count. It makes a file only; it does not open or edit spreadsheets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Up to 2000 rows; each row has one cell per column. | |
| columns | Yes | Header names. | |
| filename | No | File name, letters and digits; .csv is added. | |
| excel_bom | No | Start the file with a UTF-8 byte order mark so Excel opens accents correctly. Default false. | |
| escape_formulas | No | Prefix text cells that start with = + - or @ with an apostrophe so a spreadsheet shows them as text. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| bytes | No | ||
| notes | No | ||
| status | Yes | ||
| message | No | What to fix in the input when status is invalid. | |
| csv_text | No | ||
| filename | No | ||
| expires_at | No | When the link stops working (ISO 8601 UTC). | |
| download_url | No | Link that works for 24 hours, or null when no link could be made. |