live_save
Save the document open in Word or LibreOffice to its file from inside the app after live edits, keeping changes by overwriting the disk version; no backup is taken.
Instructions
Save the document open in Word or LibreOffice (attached with live.open) to its file, from inside the app. Call it after live edits (doc.batch with engine live) to keep them; live.close with save: true saves and closes in one call. Overwrites the file on disk with the app's version; no backup is taken.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Path to the document, or the file name of one open in a live app. | |
| engine | No | Always the live engine; may be left out. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Always true on success. | |
| op | Yes | The operation that ran. | |
| api | Yes | API version (1.0). | |
| doc | No | The document read or written: path, sha256 and paragraph count. | |
| next | Yes | Cursor for the next page (pass as cursor), or null. | |
| result | Yes | What the operation returns. | |
| warnings | Yes | Things to know about the result. |