sample_file
Preview a local CSV, Parquet, or JSON file by returning the first few rows or a random sample; set rows (1–100) to inspect data without running a full description.
Instructions
Show a few rows of a file: the first rows (mode='head') or a random sample
(mode='random', scans the whole file). Cheaper than describe_file when you only
want to see the data. rows is 1 to 100.
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": {
"path": "<path>"
},
"name": "sample_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | head | |
| path | Yes | ||
| rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |