lakehouse_load_table
Load data from a file or folder into a lakehouse table using CSV, Parquet, or JSON formats with overwrite or append modes to populate tables from OneLake paths.
Instructions
Load data into a lakehouse table from a file path (long-running operation). Not supported for schema-enabled lakehouses — use sql_endpoint_execute_query with COPY INTO or notebooks instead.
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": {
"workspaceId": "<workspaceId>",
"lakehouseId": "<lakehouseId>",
"tableName": "<tableName>",
"relativePath": "<relativePath>",
"pathType": "<pathType>"
},
"name": "lakehouse_load_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Load mode (default: Overwrite) | |
| pathType | Yes | Type of the source path | |
| tableName | Yes | Target table name | |
| lakehouseId | Yes | The lakehouse ID | |
| workspaceId | Yes | The workspace ID | |
| relativePath | Yes | Relative path to the source file in OneLake | |
| formatOptions | No | Format options for the source file |