CSV slice rows

csv-slice-rows · version 1.0.0 · CSV & tables · free, no key needed

Take a contiguous window of CSV data rows by offset and limit, keeping the header.

Use when you need to: csv slice rows · slice csv rows · csv row window.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "csv": "id,name\n1,Ada\n2,Lin\n3,Zoe\n",
  "offset": 1,
  "limit": 1
}

Response:

{
  "result": {
    "csv": "id,name\n2,Lin\n",
    "rows_in": 3,
    "rows_out": 1
  }
}

How to call it

MCP

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

{
  "id": "csv-slice-rows",
  "version": "1.0.0",
  "input": {
    "csv": "id,name\n1,Ada\n2,Lin\n3,Zoe\n",
    "offset": 1,
    "limit": 1
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/csv-slice-rows/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"csv":"id,name\n1,Ada\n2,Lin\n3,Zoe\n","offset":1,"limit":1}'

The machine-readable contract is at /v1/tools/csv-slice-rows/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.