csv_to_hyper
Convert CSV files to Tableau Hyper extracts for use as data sources in Tableau workbooks. Infers column types automatically and generates .hyper files from CSV data.
Instructions
Convert a CSV file to a Tableau Hyper extract.
Infers column types and creates a .hyper file that can be used as a data source in Tableau workbooks.
Requires tableauhyperapi (pip install tableauhyperapi).
Args: csv_path: Path to the source CSV file. hyper_path: Output path for the .hyper file. table_name: Table name inside the Hyper file. sample_rows: Rows to sample for type inference.
Returns: Confirmation with row and column counts.
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": {
"csv_path": "<csv_path>",
"hyper_path": "<hyper_path>"
},
"name": "csv_to_hyper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | Yes | ||
| hyper_path | Yes | ||
| table_name | No | Extract | |
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |