moveFile
Move a TypeScript file and automatically update all imports across the project. Atomic edits ensure consistent refactoring without breaking dependencies.
Instructions
Move a TypeScript file and update all imports automatically. Applies edits atomically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectRoot": "<projectRoot>",
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "moveFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectRoot | Yes | Absolute path to the project root (where tsconfig.json is) | |
| oldPath | Yes | Absolute path to the file to move | |
| newPath | Yes | Absolute path to the new location | |
| dryRun | No | If true, return the edit plan without applying changes |