ts_rename_file
Update all imports referencing a file after moving or renaming it on disk. Move the file first, then call this to apply changes to disk.
Instructions
Update all imports that reference a file after it has been moved or renamed on disk. Move the file first, then call this. Applies the changes to disk.
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": {
"oldPath": "<oldPath>",
"newPath": "<newPath>"
},
"name": "ts_rename_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newPath | Yes | New relative file path | |
| oldPath | Yes | Previous relative file path |