export_sheet_to_csv
Export a chosen Excel sheet to CSV, with configurable delimiter and cell range, saving to a file or returning content inline.
Instructions
Export a single Excel sheet to a CSV file.
file_path: path to the source .xlsx workbook
sheet_name: name of the sheet to export
output_path: destination file path (e.g. "/tmp/data.csv"), or "return inline" to return the content directly without saving
delimiter: column separator — "comma" (default), "pipe", or "tab"
cell_range: optional Excel range string (e.g. "A1:D10"). When omitted the entire used range is exported.
Returns a dict with:
output_path: path of the file written (omitted when returning inline)
content: CSV text (only present when returning inline)
sheet: sheet name
range: the range that was exported
rows_written: number of rows written
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delimiter | No | comma | |
| file_path | Yes | ||
| cell_range | No | ||
| sheet_name | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||