---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/parsing/variables/parseCsvTool.md
description: Parse a CSV or TSV string into a JSON array.
---

# Variable: parseCsvTool

```ts
const parseCsvTool: Tool<SpooledJsonArtifact<unknown>>;
```

Defined in: [batteries/tools/parsing/index.ts:26](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/parsing/index.ts#L26)

Parse a CSV or TSV string into a JSON array.

## Remarks

With `has_header: true` (default), each row becomes an object keyed by column name. Without a
header, rows are returned as positional arrays. `delimiter` auto-detects when omitted; pass
`"\t"` for TSV. Rows are clipped to `limit` (default 1000, max 10000). Parse warnings are
prepended to the output.
