export_sheet_to_text
Export any Excel sheet to a plain-text delimited file using pipe, comma, or tab separators, with optional cell range. Provides readable flat text output without CSV quoting.
Instructions
Export a single Excel sheet to a plain-text delimited file.
Values are joined with the chosen delimiter with no CSV quoting applied, making output easy to read as a flat text 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.txt"), or "return inline" to return the content directly without saving
delimiter: column separator — "pipe" (default), "comma", 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: text content (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 | pipe | |
| file_path | Yes | ||
| cell_range | No | ||
| sheet_name | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||