Skip to main content
Glama

Project Explorer MCP Server

rename_file

Rename or move files and directories within allowed paths using a single operation. The tool ensures the destination does not exist, preventing overwrites, and works across different 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

NameRequiredDescriptionDefault
newPathYesNew path for the file or directory
oldPathYesCurrent path of the file or directory to rename

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "newPath": { "description": "New path for the file or directory", "type": "string" }, "oldPath": { "description": "Current path of the file or directory to rename", "type": "string" } }, "required": [ "oldPath", "newPath" ], "type": "object" }
Install Server

Other Tools from Project Explorer MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MausRundung362/mcp-explorer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server