move_directory
Move directories and automatically update TypeScript imports and references to maintain code integrity during file reorganization.
Instructions
Move a directory to a new location, updating all TypeScript imports and references automatically
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": {
"sourcePath": "<sourcePath>",
"targetPath": "<targetPath>"
},
"name": "move_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Root directory for resolving relative paths | |
| sourcePath | Yes | The relative path of the directory to move | |
| targetPath | Yes | The new relative path for the directory | |
| overwrite | No | Whether to overwrite existing directory at target path |