csv_sample
Retrieve sample rows from a CSV file using first, last, random, or range selection to inspect data quickly.
Instructions
Get sample records from a CSV file using various sampling strategies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "csv_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the CSV file | |
| mode | No | Sampling mode (default: first) | |
| count | No | Number of records to sample (default: 10) | |
| rangeEnd | No | End line for range mode (1-indexed) | |
| rangeStart | No | Start line for range mode (1-indexed) |