rename_entity
Rename or move files, documents, and folders in an Overleaf project by specifying a new name or destination path; creates missing folders and asks for confirmation before writing.
Instructions
Rename a file, document, or folder within an Overleaf project, or move it into another folder. new_name without a slash renames in place. A path such as "chapters/intro.tex" moves the entity into that folder under that name, creating missing folders. A path ending in a slash, such as "chapters/", moves it and keeps the name; "/" is the project root. Nothing is written when the destination already exists, the source is not found, or a folder would move into itself. Asks the user to confirm in the MCP client before writing.
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": {
"project_id": "<project_id>",
"remote_path": "<remote_path>",
"new_name": "<new_name>"
},
"name": "rename_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New name (renames in place), or a destination path: "folder/name.tex" moves and renames, "folder/" moves and keeps the name, "/" is the project root | |
| project_id | Yes | The Overleaf project ID | |
| remote_path | Yes | Current path of the file/document/folder within the project |