Ferramentas de desenvolvedor
Kit CSV
csv-toolkit
Use CSV Toolkit through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Ações rápidas
Arquivos de entrada 0–50Arquivos de saída 1–100
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | file-or-data |
|---|---|
| N.º de arquivos | 0 – 50 |
| MIME aceitos | text/csv, text/plain |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
operation |
enum | Opcional | clean |
clean | merge | split | CSV workflow: clean transforms one CSV, merge combines multiple CSV files by header name, split divides one CSV into multiple files. |
delimiter |
enum | Opcional | auto |
auto | comma | semicolon | tab | Input delimiter. auto detects comma, semicolon or tab. |
outputDelimiter |
enum | Opcional | comma |
comma | semicolon | tab | Delimiter used for generated CSV files. |
headerRow |
integer | Opcional | 1 |
1 – 1000 | 1-based row containing column headers. |
removeDuplicates |
boolean | Opcional | false |
— | Remove exact duplicate rows after parsing. |
filterColumn |
string | Opcional | — | — | Column used by the contains filter. Omit to disable filtering. |
filterValue |
string | Opcional | — | — | Case-insensitive substring required in filterColumn. Omit to disable filtering. |
sortColumn |
string | Opcional | — | — | Column used for sorting. Omit to preserve row order. |
sortDirection |
enum | Opcional | asc |
asc | desc | Sort direction when sortColumn is provided. |
sortMode |
enum | Opcional | auto |
auto | text | number | Comparison mode. auto uses numeric comparison when both values are numeric, otherwise text comparison. |
columns |
string[] | Opcional | — | — | Ordered list of columns to keep in Clean mode. Omit to keep every column. |
rowsPerFile |
integer | Opcional | 5000 |
1 – 1000000 | Maximum data rows per generated file in Split mode. |
includeBom |
boolean | Opcional | true |
— | Prefix generated CSV with UTF-8 BOM. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files+data |
|---|---|
| N.º de arquivos | 1 – 100 |
| MIME de saída | text/csv |
| Metadata | rows, columns, parts, inputFiles |
| Arquivo ZIP | Suportado · threshold 2 |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
Headless
const result = await client.run("csv-toolkit", {
options: { operation: "clean", delimiter: "auto", outputDelimiter: "comma", headerRow: 1 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "csv-toolkit", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.