change_method_signature
Modify Java method signatures (name, parameters, return type) and automatically update all call sites with required text edits.
Instructions
Change method signature (parameters, return type, or name) and update all call sites.
Returns text edits for the method declaration and all call sites. The caller should apply these edits to perform the change.
USAGE: Position on method declaration, provide changes OUTPUT: Edits for declaration and all call sites
PARAMETER OPERATIONS:
Add new parameter with default value for existing calls
Remove parameter (will remove from calls)
Rename parameter
Reorder parameters (specify all parameters in new order)
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 method | |
| line | Yes | Zero-based line number of method declaration | |
| column | Yes | Zero-based column number | |
| newName | No | New method name (optional, omit to keep current) | |
| newReturnType | No | New return type (optional, omit to keep current) | |
| newParameters | No | New parameter list. Each item: {name, type, defaultValue?}. Order matters. |