rename_symbol
Rename any Java symbol project-wide by providing file path, zero-based coordinates, and new name. Returns all text edits needed.
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 |
|---|---|---|---|
| newName | Yes | New name for the symbol | |
| filePath | Yes | Path to source file containing the symbol | |
| column | Yes | Zero-based column number | |
| line | Yes | Zero-based line number |