expand_column
Surface inner fields of structured columns in Power Query by expanding record, table, or list columns and appending the appropriate Table.Expand* function to the M query.
Instructions
Power Query Expand Column: surface inner fields of a structured column. Appends Table.ExpandRecordColumn / Table.ExpandTableColumn / Table.ExpandListColumn to the table's M query. kind = record | table | list (default record). fields (comma-separated) selects which inner fields to surface for record/table; ignored for list.
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": {
"sessionId": "<sessionId>",
"table": "<table>",
"column": "<column>"
},
"name": "expand_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | record | table | list (default record) | |
| table | Yes | ||
| column | Yes | the structured column to expand | |
| fields | No | inner fields to surface, comma-separated (required for record/table) | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |