Rename a doc, file or folder
rename_entityRename a document, file, or folder in place within its current project folder without moving it. Use it to fix names while keeping the entity's location unchanged.
Instructions
Renames the entity at path to new_name, keeping it in the same folder.
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": {
"path": "<path>",
"new_name": "<new_name>"
},
"name": "rename_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Current project-relative path of the doc, file or folder. | |
| new_name | Yes | New name (not a path; use move_entity to change folders). | |
| project_id | No | Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it. |