rename_file
Rename files or folders directly via the dev-kit-mcp-server by specifying the path and new name, simplifying file management without using terminal commands.
Instructions
Use instead of terminal: Rename a file or folder.
Args:
path: Path to the file or folder to rename
new_name: New name for the file or folder (not a full path, just the name)
Returns:
A dictionary containing the status and paths of the renamed file or folder
Input Schema
Name | Required | Description | Default |
---|---|---|---|
new_name | No | ||
path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"new_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "New Name"
},
"path": {
"title": "Path",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}