rename_symbol
Rename a symbol across a TypeScript project, including shorthand properties and aliased imports, and writes changes to disk with a summary of modifications.
Instructions
Rename a symbol across the project, writing the changes to disk. Handles shorthand properties and aliased imports correctly. Returns summary of files modified and total changes made. Target it either by "symbol" name (preferred: no need to know coordinates) or by explicit file/line/column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the file (relative to project root) | |
| line | No | Line number (1-based) | |
| column | No | Column number (1-based) | |
| symbol | No | Name of the symbol to target, instead of line/column. Qualify as "Container.member" (e.g. "UserService.getUser") to disambiguate. Combine with "file" to restrict the search to one file. An ambiguous name returns an error listing the candidates. | |
| newName | Yes | The new name for the symbol |