move_column
Move a column in a Power Query table to the start, end, before, or after another column, updating the M query with the new order.
Instructions
Power Query Move Column: reposition a column. Appends Table.ReorderColumns with the computed order to the table's M query. position = start | end | before | after. For before/after, refColumn is required.
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>",
"position": "<position>"
},
"name": "move_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| column | Yes | the column to move | |
| position | Yes | start | end | before | after | |
| refColumn | No | the reference column (required for before/after) | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |