export_sheet_to_markdown
Convert an Excel worksheet into a Markdown table: uses the first row as headers, aligns columns, supports optional cell ranges, and writes to a file or returns content inline.
Instructions
Export a single Excel sheet to a Markdown table.
The first row is treated as the header row and a separator line is inserted beneath it. All column widths are padded to align the table.
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.md"), or "return inline" to return the content directly without saving
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: markdown text (only present when returning inline)
sheet: sheet name
range: the range that was exported
rows_written: number of rows written (including header)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| cell_range | No | ||
| sheet_name | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||