pbi_create_csv_import_query
Generates and inserts a Power Query script to load CSV data into a specified Power BI table, with configurable delimiter, encoding, header, and refresh settings.
Instructions
Generate and inject a CSV import Power Query for a table.
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": {
"table": "<table>",
"csv_path": "<csv_path>"
},
"name": "pbi_create_csv_import_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| csv_path | Yes | ||
| encoding | No | ||
| delimiter | No | , | |
| quote_style | No | csv | |
| refresh_after | No | ||
| partition_name | No | ||
| promote_headers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |