overleaf_rename_file
Rename an existing file in an Overleaf project without changing its folder. Provide the project ID, current file path, and new file name to update the project structure.
Instructions
Rename an existing project file without changing folders. List files first to obtain the exact old_path; this cannot move a file between folders.
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>",
"old_path": "<old_path>",
"new_name": "<new_name>"
},
"name": "overleaf_rename_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New file name only, for example "methods.tex" | |
| old_path | Yes | Existing file path, for example "chapters/method.tex" | |
| project_id | Yes | 24-character hexadecimal Overleaf project ID from the project URL |