Rename a project file
rename_fileRename one existing text or binary file in its current folder, preserving its extension and contents. Use rename_file or move_file only when the user requests a file rename or move. Both support existing text and binary files without reading or copying their contents. Call list_files first and pass the exact path and its revision as baseRevision. rename_file preserves the directory and extension; move_file preserves the filename within the same project. No overwrites, folder moves, cross-project transfers, or binary content changes are allowed. Path changes apply immediately, outside Review changes Keep/Revert. Text references are not automatically updated: check relevant LaTeX and bibliography references (including relative paths inside a moved text file), use guarded edit_file if needed, and report any incomplete reference updates separately. On a missing path or revision conflict, call list_files and confirm the target before retrying once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact current project-relative file path from list_files. | |
| newName | Yes | Filename only, with the same extension. No folder path. | |
| projectId | Yes | ||
| baseRevision | Yes | Current file revision from list_files. No read_file call or binary download is needed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| status | Yes | ||
| message | Yes | ||
| previousPath | Yes | ||
| referencesUpdated | Yes |