reorder_columns
Reorder columns in Power Query tables by moving specified columns to the front, keeping the original order for the rest.
Instructions
Power Query Reorder Columns: move the listed columns to the front in the given order (remaining columns keep their relative order). Appends Table.ReorderColumns to the table's M query. order is comma-separated.
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>",
"order": "<order>"
},
"name": "reorder_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | desired leading column order, comma-separated | |
| table | Yes | ||
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |