rename
Renames a symbol across all affected files, returning a workspace edit or applying changes directly to disk when requested.
Instructions
Rename a symbol across all affected files. Returns the workspace edit, or applies it to disk when apply is true.
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>",
"line": "<line>",
"col": "<col>",
"newName": "<newName>"
},
"name": "rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | Yes | Column number (1-indexed) | |
| file | Yes | Relative file path from project root | |
| line | Yes | Line number (1-indexed) | |
| apply | No | Write the changes to disk instead of returning the edit (default false) | |
| newName | Yes | The new name for the symbol |