rename_symbol
Rename any Java symbol by specifying its location and new name, and receive precise text edits to apply across the project.
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 |