convert_spreadsheet
Convert spreadsheet and tabular data between formats such as CSV, TSV, JSON, Excel, HTML, and Markdown, with optional header, sheet, and delimiter controls.
Instructions
Convert spreadsheet and tabular data. Input: csv, tsv, json, jsonl, ndjson, xlsx (requires xlsx package). Output: csv, tsv, json, jsonl, html, markdown, xlsx.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_spreadsheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | Sheet name or index for xlsx input (optional) | |
| header | No | First row is header (optional, default true) | |
| skipRows | No | Skip N rows before header (optional) | |
| delimiter | No | CSV delimiter (optional, default ',') | |
| inputPath | Yes | Absolute path to input spreadsheet file | |
| outputPath | Yes | Absolute path for output file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) |