Refactoring
refactoringRename symbols, extract functions, or move code between files with automatic import updates. Safely refactor TypeScript/JavaScript using the compiler for type-aware transformations.
Instructions
Rename symbols, extract functions, or move symbols to files (auto-updates imports).
vs Edit: Updates ALL refs (imports, JSDoc, dynamic imports). Impossible by hand.
Use when: Renaming, extracting, or moving symbols between files. Always use this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| filePath | Yes | ||
| line | Yes | ||
| text | Yes | ||
| name | No | ||
| destinationPath | No | ||
| preview | No |