lsp_rename_preview
Preview a symbol rename operation without writing changes. Returns the WorkspaceEdit and a unified diff for review.
Instructions
Preview a rename operation. Returns the WorkspaceEdit and a unified diff. No files are written to disk.
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>",
"position": "<position>",
"newName": "<newName>"
},
"name": "lsp_rename_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | The new name for the symbol. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| position | Yes | Line/character position (zero-based) of the symbol to rename. | |
| includeDiff | No | Whether to include a unified diff in the response. |