move_file
Move a TypeScript/JavaScript file to a new location and automatically update all related import paths to ensure code integrity.
Instructions
Move a TypeScript/JavaScript file to a new location and update all import statements
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": {
"root": "<root>",
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "move_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newPath | Yes | New file path (relative to root) | |
| oldPath | Yes | Current file path (relative to root) | |
| overwrite | No | Overwrite the destination file if it exists | |
| root | Yes | Root directory for resolving relative paths |