table_convert
Convert tabular data between CSV, Markdown, JSON, TSV, and HTML formats without losing or reshuffling rows. Ragged rows are padded, and CJK-aware alignment keeps tables intact.
Instructions
Convert tabular data between formats, without losing or reshuffling rows.
Use this whenever a table needs to change shape: CSV to Markdown, Markdown to JSON, HTML table to CSV, and so on. Rows are never silently dropped, and ragged rows are padded rather than truncated. Markdown output is column-aligned with East-Asian wide characters counted as two cells, so Chinese tables line up correctly.
Args: text: The whole table as text. from_format: Source format. markdown, csv, tsv, json or html (aliases: md, htm). to_format: Target format. markdown, csv, tsv, json or html (aliases: md, htm). aligns: Markdown output only. Per-column alignment as a comma-separated list, e.g. "left,right,center", or one value applied to every column, e.g. "center". Empty means leave the default alignment. indent: JSON output indentation width. Default 2.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| aligns | No | ||
| indent | No | ||
| to_format | Yes | ||
| from_format | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |