Workspace
workspacePerform type-aware code refactoring, find references, clean up unused code, and restart TypeScript server for safe code transformations.
Instructions
Find references (type-aware) | Cleanup | Move+organize+fix | Restart tsserver.
vs grep: Finds dynamic imports, JSDoc, type-only imports grep misses. ⚠️ Can DELETE.
Use when: Before renaming/refactoring. Use find_references first to see impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| filePath | No | ||
| line | No | ||
| text | No | ||
| sourcePath | No | ||
| destinationPath | No | ||
| directory | No | ||
| deleteUnusedFiles | No | ||
| entrypoints | No | ||
| preview | No |