lsp_format_preview
Preview language-server formatting edits for a file before applying changes, so you can review whitespace and indentation adjustments safely.
Instructions
Preview language-server formatting edits for a file without applying them.
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": {
"file": "<file>"
},
"name": "lsp_format_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| limit | No | ||
| tabSize | No | ||
| insertSpaces | No |