Convert CSV and JSON
convert_csv_jsonConvert CSV to JSON or JSON to CSV. Supports comma, tab, semicolon, and pipe delimiters, an optional header, type inference, and dotted flattening. Inferred numbers that do not fit in a JavaScript number keep their digits.
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": {
"text": "<text>"
},
"name": "convert_csv_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| header | No | ||
| flatten | No | Used when converting JSON to CSV. Nested keys become dotted columns. | |
| delimiter | No | Comma, tab, semicolon, pipe, or auto. Auto is a comma when writing CSV. | auto |
| direction | No | csv-to-json | |
| inferTypes | No | Used when converting CSV to JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| rows | Yes | ||
| error | Yes | ||
| output | Yes | ||
| columns | Yes | ||
| warning | Yes | ||
| delimiter | Yes |