Move a project file
move_fileMove one existing text or binary file to a project-relative folder in the same project, preserving its filename and contents. Use an empty destinationFolder for the project root. New implicit folders are allowed. 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. | |
| projectId | Yes | ||
| baseRevision | Yes | Current file revision from list_files. No read_file call or binary download is needed. | |
| destinationFolder | Yes | Project-relative destination directory, without a trailing slash; empty string means project root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| status | Yes | ||
| message | Yes | ||
| previousPath | Yes | ||
| referencesUpdated | Yes |