lsp_rename
Computes workspace edits to rename a symbol across files, returning precise text document changes for safe renaming.
Instructions
Compute workspace edits to rename a symbol.
Returns a set of text document edits that can be applied to safely rename the symbol across all files.
Limitation: rename is on the scheme-langserver roadmap and may return -32601 "method not found". If so, fall back to manual renaming.
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_path": "<file_path>",
"line": "<line>",
"character": "<character>",
"new_name": "<new_name>"
},
"name": "lsp_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| new_name | Yes | ||
| character | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||