refactor_rename
Rename variables, functions, or classes across your entire codebase with a preview of changes, then optionally apply them.
Instructions
Rename a symbol (variable, function, class) across the entire codebase. Returns preview of changes, optionally applies 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": {
"path": "<path>",
"filePath": "<filePath>",
"symbolName": "<symbolName>",
"newName": "<newName>"
},
"name": "refactor_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root path of the repository | |
| apply | No | Apply changes (default: false, preview only) | |
| newName | Yes | New name for the symbol | |
| filePath | Yes | Path to file containing the symbol | |
| symbolName | Yes | Current name of the symbol |