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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | head | |
| path | Yes | ||
| rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |