Csv To Json
csv_to_jsonParse RFC 4180 CSV into JSON (keyless, offline). With header true (default) the first row becomes object keys; otherwise rows are returned as arrays. Handles quoted fields, escaped quotes, and embedded commas/newlines. Set delimiter for TSV etc.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"csv": "name,age,city\nAlice,30,New York\nBob,25,Los Angeles",
"header": true
},
"name": "csv_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | The CSV text. | |
| header | No | Treat the first row as a header (default true). | |
| delimiter | No | Field delimiter (default ","). |