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
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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"newPath": {
"description": "New file path (relative to root)",
"type": "string"
},
"oldPath": {
"description": "Current file path (relative to root)",
"type": "string"
},
"overwrite": {
"default": false,
"description": "Overwrite the destination file if it exists",
"type": "boolean"
},
"root": {
"description": "Root directory for resolving relative paths",
"type": "string"
}
},
"required": [
"root",
"oldPath",
"newPath"
],
"type": "object"
}