rename_file
Rename or move files by specifying old and new paths; optionally overwrite existing files. Part of the Enhanced Directory Context MCP Server for advanced file management operations.
Instructions
Rename or move a file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
new_path | Yes | New file path | |
old_path | Yes | Current file path | |
overwrite | No | Overwrite if destination exists |
Input Schema (JSON Schema)
{
"properties": {
"new_path": {
"description": "New file path",
"type": "string"
},
"old_path": {
"description": "Current file path",
"type": "string"
},
"overwrite": {
"default": false,
"description": "Overwrite if destination exists",
"type": "boolean"
}
},
"required": [
"old_path",
"new_path"
],
"type": "object"
}