Fix a CSV for Excel (encoding, separator, decimals, dates, leading zeros)
csv_fixFix a CSV for Excel (encoding, separator, decimals, dates, leading zeros). Reads a CSV/TSV/TXT table: encoding from the bytes (UTF-8/16, Windows-1252/1250, ISO-8859-15, Mac Roman; double-encoded UTF-8 repaired), separator and header row, and each column's type (numbers in any locale writing, dates with day/month order, codes with leading zeros or 12+ digits kept as text). Returns a typed .xlsx (only when every cell read back equal and no digit was lost), a plain UTF-8 CSV, a CSV for Excel in the given locale, and report.json with what was detected and the checks. An .xlsx input comes back as a UTF-8 CSV. Same engine as the CSV fixer page. Use when: An agent has a CSV export (bank, shop, CRM, open data) that opens wrong in Excel or must be typed before analysis. Not for: Cleaning or deduplicating data; PDF tables (pdf_tables); old binary .xls. File types: csv, tsv, txt, xlsx. Max 30 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "csv_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |