rename_symbol
Update TypeScript symbol names (variables, functions, classes) across the codebase by specifying the file path, line, old name, and new name for efficient refactoring.
Instructions
Rename a TypeScript symbol (variable, function, class, etc.) across the codebase
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File path (relative to root) | |
| line | Yes | Line number (1-based) or string to match in the line | |
| newName | Yes | New name for the symbol | |
| oldName | Yes | Current name of the symbol | |
| root | Yes | Root directory for resolving relative paths |