rename_file
Rename or move files and directories in a single operation. Works across directories for easy relocation. Fails if destination already exists to prevent overwrites. Both paths must be within allowed directories.
Instructions
Rename or move a file or directory. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oldPath | Yes | Current path of the file or directory to rename | |
| newPath | Yes | New path for the file or directory |