Convert table
convert_tableConvert a table from CSV, TSV or JSON into CSV, TSV, JSON (array of objects) or a Markdown table. Cell values are kept as text. Use when the user wants the same table in another format. Do NOT use to trim, dedupe or drop rows; use clean_table.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>",
"from_format": "<from_format>",
"to_format": "<to_format>"
},
"name": "convert_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The whole table as text, first row = header. CSV/TSV text (quoted cells allowed), or a JSON array of flat objects, e.g. "name,age\nAsha,30". | |
| to_format | Yes | Output format: csv, tsv, json (array of objects keyed by header) or markdown (pipe table). | |
| from_format | Yes | Format of the input 'data': csv, tsv or json. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Number of data rows (excluding the header). | |
| text | Yes | The converted table as text in to_format. | |
| columns | Yes | Number of columns in the header row. |