Move or rename
move_fileMoves or renames a file or folder within an Overleaf project, creating missing target folders and avoiding overwrites; update LaTeX references afterward.
Instructions
Moves and/or renames a file or folder inside one project, creating missing target folders. Fails if something already exists at the target path; nothing is overwritten. References in the LaTeX (\input, \includegraphics) are not updated, so fix them with edit_file afterwards. Use it rather than writing a copy and deleting the original.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "move_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | New path, e.g. "figures/plot.png"; a different last part renames it | |
| from | Yes | Current path of the file or folder, e.g. "plot.png" | |
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. |