item (Open)¶
Operations for opening an item inside Curio or its default system application, and revealing its file in the OS file manager.
item.open¶
Open an item in Curio's viewer, in a standalone item window or in the operating system's default application for its file type. For security, executables and scripts can only be launched from Curio's own window (not remotely via API), and saved .url links only open when pointing to http:// or https:// web pages. To target a specific window's viewer directly or focus a manually grouped member file, use viewer.open.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id |
string \| number |
Yes | — | Item UUID or row ID. |
how |
string |
No | "viewer" |
viewer (in the library window's viewer), window (new standalone item window) or app (OS default app). |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits viewer.opened when how === "viewer". Returns 409 no_window for viewer if no window has the library open; 404 not_found if missing/offline.
item.reveal¶
Open the operating system's file manager (Windows Explorer, Dolphin, Nautilus or Finder) with the item's file selected.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id |
string \| number |
Yes | — | Item UUID or row ID. |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits no events. Returns 404 not_found if the item or its file on disk is missing/offline.