openl Close Project
openl_close_projectClose a project, either saving changes with a comment or discarding after user confirmation, to prevent accidental data loss.
Instructions
Close a project. If the project has unsaved changes (status EDITING), you must either save (saveChanges: true with comment) or discard (discardChanges: true). When discarding, ask the user for confirmation and then call again with confirmDiscard: true. Prevents accidental data loss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID returned by backend. Use the exact 'projectId' value from openl_list_projects() response without modification or reformatting. | |
| saveChanges | No | If true, save changes before closing (requires comment). If false or omitted and project has unsaved changes, will error unless discardChanges is true. | |
| comment | No | Git commit comment. Required if saveChanges is true. Optional if saveChanges is false or omitted. | |
| discardChanges | No | If true, close without saving (unsaved changes will be lost). When project is EDITING, you must also set confirmDiscard: true to confirm. | |
| confirmDiscard | No | When closing with discardChanges: true and project has unsaved changes, must be set to true (explicitly) to confirm. Omitted or false will return a confirmation prompt. Ask the user first, then call again with confirmDiscard: true. | |
| 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 |