rename_symbol
Rename Java symbols like variables, methods, and classes across your entire project with compiler-accurate refactoring. Provide the file location and new name to generate precise text edits for all occurrences.
Instructions
Rename a symbol (variable, method, field, class, etc.) across the project.
Returns text edits for all occurrences that need to be changed. The caller should apply these edits to perform the rename.
USAGE: Position on symbol, provide new name OUTPUT: List of text edits to apply
IMPORTANT: Uses ZERO-BASED coordinates.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | Zero-based column number | |
| line | Yes | Zero-based line number | |
| newName | Yes | New name for the symbol | |
| filePath | Yes | Path to source file containing the symbol |