Close Document
photopea_close_documentClose the active Photopea document, optionally saving changes before closing. Discard unsaved changes when save is false; the next open document becomes active.
Instructions
Close the active document. Set save to true to save changes before closing. Unsaved changes are discarded if save is false. The next open document becomes active, if any.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Whether to save changes before closing (true = save first, false = discard unsaved changes) |