describe_file
Inspects a CSV, Parquet, or JSON file to reveal exact column names, auto-detected types, row count, and sample rows before writing SQL queries.
Instructions
Show a file's schema (column names and types), its row count and a few sample rows.
path is relative to an allowed folder (as list_files shows it) or absolute inside
one. Column types are DuckDB's auto-detected types, which is what SQL will see. The
row count of a CSV/JSON file needs a full scan; Parquet answers from metadata.
Use this before writing a query, to get exact column names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |