rename_symbol
Renames a symbol across your Java project using zero-based coordinates, returning 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 |
|---|---|---|---|
| filePath | Yes | Path to source file containing the symbol | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| newName | Yes | New name for the symbol |