How Legato loads a page
Legato watches the Pages folder and loads a page within a second of a change: a new file, a save, a rename or a removal. It also looks over the folder every 15 seconds, in case a change notice never arrives. Hidden files, and names that don't end in .json, are ignored.
Legato checks each page when it loads it. A page with a mistake is never dropped quietly: it stays in the sidebar, titled with its file name and a warning icon, with one card, Can't read this page, that says what's wrong, such as homelab.json: not valid JSON or homelab.json: cards must list 1 to 24 cards. Fix the file and save it, and the page comes back.
A mistake inside one card's source or buttons is smaller: that card alone shows a warning that says what's wrong, and the rest of the page works.
Legato checks what it needs to draw each card: its type, its required fields and the kind of each value. It doesn't check every limit the schema sets, such as a label's length, or catch a misspelled optional field, which it ignores. Use the schema in an editor, or get_page_schema, to catch those.
Status files
Each time it reads a page file, Legato writes that page's status to Pages/.status/<id>.json, so a script that writes a page file can tell whether Legato accepted it. get_page and list_pages read the same files.
{ "error": null, "loadedAt": "2026-10-27T21:15:02.118Z", "ok": true, "page": "local:homelab", "version": "3f2a9c41d07be815" }| Field | Meaning |
|---|---|
ok | true when the page loaded. false when Legato can't use the file; the panel then shows Can't read this page. |
error | null, or why the file can't be used: the same message the panel shows. |
loadedAt | When Legato last read this page's file, in ISO 8601 UTC with milliseconds. A status is written again when its file changes, when a trial or license starts or ends, or after Legato couldn't write it or read its file. A file that can't be read keeps its last good read and is tried again at each check. |
version | Which bytes the status is about: the first 16 hex characters of the SHA-256 of the file Legato read, the same version legato get reports. Wait for the version of what you wrote before reading ok; a different one means another save came after yours. |
page | Legato's own name for the page: local: and the page id. |
plan | Only when the trial has ended without a license: "locked". The page loaded, and shows again once there's a license. |
ok describes the page as a whole: a card whose source or buttons are wrong still has its own warning in the panel. A status is removed with its page file. Statuses are written only while Legato is running. The .status folder is readable only by your user account, and Legato never writes through a symbolic link in it.