lsp_organize_imports_preview
Preview import organization changes from source.organizeImports as a unified diff without modifying files.
Instructions
Preview import organization changes using source.organizeImports code action. Returns a unified diff without writing files.
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": {
"filePath": "<filePath>"
},
"name": "lsp_organize_imports_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| includeDiff | No | Whether to include a unified diff. |