CSV dialect parse

csv-dialect-parse · version 1.0.0 · CSV & tables · free, no key needed

Parse CSV with an explicit dialect into string rows, keeping leading zeros and embedded breaks.

Use when you need to: parse csv with an explicit dialect · read rfc 4180 text into string cells · parse pipe quoted csv fields.

Decide before calling

Read the versioned contract and the supported scope below. Reuse csv-dialect-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use csv-dialect-parse@1.0.0 for parse csv with an explicit dialect. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "csv": "aaa,bbb,ccc\r\nzzz,yyy,xxx\r\n",
  "dialect": {
    "delimiter": ",",
    "quote": "\"",
    "escape": "double",
    "record_separator": "\r\n",
    "header": "absent"
  }
}

Response:

{
  "result": {
    "header": null,
    "rows": [
      [
        "aaa",
        "bbb",
        "ccc"
      ],
      [
        "zzz",
        "yyy",
        "xxx"
      ]
    ],
    "ragged": false,
    "record_count": 2,
    "dialect": {
      "delimiter": ",",
      "quote": "\"",
      "escape": "double",
      "record_separator": "\r\n",
      "header": "absent"
    }
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "csv-dialect-parse",
  "version": "1.0.0",
  "input": {
    "csv": "aaa,bbb,ccc\r\nzzz,yyy,xxx\r\n",
    "dialect": {
      "delimiter": ",",
      "quote": "\"",
      "escape": "double",
      "record_separator": "\r\n",
      "header": "absent"
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/csv-dialect-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"csv":"aaa,bbb,ccc\r\nzzz,yyy,xxx\r\n","dialect":{"delimiter":",","quote":"\"","escape":"double","record_separator":"\r\n","header":"absent"}}'

The machine-readable contract is at /v1/tools/csv-dialect-parse/versions/1.0.0.

CLI

node cli.mjs run csv-dialect-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.