Move or Rename Project File
openl_move_project_fileMove or rename a project file. Automatically creates intermediate folders, deletes the source, and reports collisions as errors.
Instructions
Move or rename a file within a project. Maps to POST /projects/{projectId}/file-move. Intermediate destination folders are created automatically and the source file is deleted after the move. A destination collision fails with HTTP 409. The move is staged in the working copy — commit it with openl_save_project. Use 'branch' to pin the project's branch. Use this to rename a file or relocate it to another folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch the project must be on for this operation. Ignored when blank. Fails if the repository has no branches or the project is on another branch. Omit for repository 'local' and non-branch repositories. | |
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| sourcePath | Yes | Project-relative path of the source file (e.g. 'rules/Model.xlsx'). | |
| destinationPath | Yes | Project-relative destination path (e.g. 'rules/Model-copy.xlsx'). Intermediate folders are created automatically. | |
| response_format | No | Response format: 'json' for structured data, 'markdown' for human-readable (default), 'markdown_concise' for brief summary (1-2 paragraphs), 'markdown_detailed' for full details with context | markdown |