CSV / JSON converter
csv_jsonConverts CSV text to JSON or JSON to CSV (direction: csv-to-json or json-to-csv), for data passed inline. CSV must be comma-separated, with a header row and at least one data row; double-quoted fields may contain commas. Semicolon- or tab-separated input is not detected and comes back as a single column. JSON input must be an array of objects: the union of their keys becomes the CSV header and missing values are left empty. Returns result (the converted text), rows and cols. Max 500,000 characters.
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": {
"direction": "<direction>",
"data": "<data>"
},
"name": "csv_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The CSV or JSON text to convert, matching the chosen direction. | |
| direction | Yes | Either 'csv-to-json' or 'json-to-csv'. |