format_m
Format Power Query M expressions or section documents into readable, one-step-per-line code while preserving comments and verifying token-for-token equivalence to prevent meaning changes.
Instructions
Pretty-print M (an expression or a section document): one step per line, long calls broken at their arguments, comments kept. The output is verified token-for-token against the input, so meaning can never change.
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": {
"formula": "<formula>"
},
"name": "format_m"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formula | Yes |