live_open
Attach to Word or LibreOffice for live editing: find and focus an open document window, or open the file in the selected app before live edits.
Instructions
Attach to Word or LibreOffice for live editing: find the window already holding the document, or open it in app (word or libreoffice; default the one reachable, see live.status) and bring it to the front (front: false keeps it behind). Call it before live.select, live.get_selection, live.save, live.close and doc.batch with engine live. Opens or focuses a window; never changes the document. ENGINE_UNAVAILABLE when no app can be driven, DOC_AMBIGUOUS when a file name matches several open documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | `word` or `libreoffice`. | |
| doc | Yes | Path to the document, or the file name of one open in a live app. | |
| front | No | Bring the app's window to the front (default true); the reply's `front` says whether it came. | |
| 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. |