What you’ll see
Jellyfin
- Health: in Details, a row for each scheduled task and each plugin, grouped as the server groups them, and Restart pending while the server waits for one. A task whose last run failed, a plugin that’s malfunctioned and a restart pending are orange. The worst sets the health card's colour, and a change sends a notification. When the server stops answering, the rows give way to one red Server row.
- Now playing: each stream with its poster (a show’s, or an album’s cover; a film, show or note icon when the server has none), its title and episode, a bar with "31 of 47 min", who’s watching on which device, and whether it plays directly or is transcoding. A paused stream says Paused. Point at a row for Message and Stop; Stop asks first. A live TV channel or an idle app isn’t listed. Someone watching never counts as a problem.
- Recently added: a shelf of the four newest films, episodes and albums, with their posters. Each opens in Jellyfin’s web app.
- Libraries: each library with what it holds ("1,204 movies", "312 shows · 9,870 episodes"). The server counts by kind, so two libraries of the same kind (Shows and Kids, say) each just say Shows; their own pages have their counts. Each row opens that library’s page.
Library
One page for every library, titled with its name: how many titles it holds, its kind and folder, and the latest fifteen added.
Status
- Watches the server, not who’s watching.
- Orange for a task whose last run failed, a plugin that’s broken or a restart pending.
- Red once the server stops answering.
- Someone watching or transcoding never counts as a problem.
- Notifies you when it turns orange or red.
How it connects
The pages read the server’s own API with an API key, sent as Authorization: MediaBrowser Token="…", the form Jellyfin 10.10 and later and Emby both accept.
Requests it makes on its own 10
- GET
/Sessions?activeWithinSeconds=960 Who’s playing what, where it’s up to, and how it plays.
JellyfinOnce a minute
- GET
/Items/CountsHow many films, shows, episodes, albums and songs the server holds.
JellyfinEvery 15 minutes
- GET
/Library/VirtualFoldersThe libraries, their kinds and folders, and whether one is being scanned.
Jellyfin, LibraryEvery 15 minutes
- GET
/Items?Recursive=true &SortBy=DateCreated &SortOrder=Descending &IncludeItemTypes=Movie,Episode,MusicAlbum &Fields=DateCreated &Limit=8 What was added most recently.
JellyfinEvery 15 minutes
- GET
/ScheduledTasks?IsHidden=false Each task’s last run.
JellyfinEvery 5 minutes
- GET
/System/InfoA pending restart (and Emby’s maintenance mode).
JellyfinEvery 5 minutes
- GET
/PluginsEach plugin’s status.
JellyfinEvery 5 minutes
- GET
/Items?ParentId={param.id} &Recursive=true &Limit=0 &EnableTotalRecordCount=true &IncludeItemTypes=Movie,Series,MusicAlbum,Book,MusicVideo How many titles the library holds.
LibraryEvery 15 minutes
- GET
/Items?ParentId={param.id} &Recursive=true &SortBy=DateCreated &SortOrder=Descending &IncludeItemTypes=Movie,Episode,MusicAlbum,Book,MusicVideo &Fields=DateCreated &Limit=15 What was added to it most recently.
LibraryEvery 15 minutes
- GET
/Items/{id}/Images/PrimaryPosters and covers the server says it has, kept on this Mac.
Jellyfin, LibraryWhile the panel shows the row
Requests it makes when you act 2
- POST
/Sessions/{id}/MessageShows your words on that screen for 10 seconds.
JellyfinWhen you send a message
- POST
/Sessions/{id}/Playing/StopStops that stream.
JellyfinWhen you press Stop and confirm
That’s about 108 requests an hour with the overview open, plus a poster the first time each one shows. Posters come only from your server, never from another site, and Load icons from the web in Settings doesn’t affect them.
Sources and buttons explains each part of a page.
Set it up
- Make an API key. In Jellyfin, open Dashboard → API Keys and add one named Legato; in Emby, Settings → Advanced → API Keys. An API key acts as an administrator, which the tasks, plugins and Stop need.
- Save it in Legato. In Settings → Secrets, save just the key under
jellyfin, bound to your server’s address. You can also link a 1Password reference. - Add the pages. Paste the prompt into your agent, or download the two pages and run
/Applications/Legato.app/Contents/Helpers/legato set jellyfin-library jellyfin-library.json, thenlegato set jellyfin jellyfin.json. Keep the IDjellyfin-library: every library row opens it with that library’s id. - Point them at your server. Change
http://jellyfin.local:8096to your server’s address on every source of both pages, and in the Recently added links. A server behind a path such as/jellyfinneeds that path at the start of each request too.
The cards fill within a minute. A mistyped key is the usual reason they don’t: the page then notes that the server refused it.
Prompt for your agent
Add 2 Legato pages for Jellyfin and Emby, starting from https://legatobar.com/examples/jellyfin.json, https://legatobar.com/examples/jellyfin-library.json. Use the page IDs jellyfin, jellyfin-library if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Add the pages as they are, keeping their page IDs, and change http://jellyfin.local:8096 on every source to my server’s address. I’ll save my API key as jellyfin in Settings → Secrets myself. Don’t press Stop or Message to test them.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
Does it work with Emby?
Yes. Emby 4.x takes the same sign-in, and every request the pages make. The title says Jellyfin; change title to Emby if you like. Emby’s Server dots include its maintenance mode.
Why don’t I see Stop or Message on a row?
They show only for apps that take remote commands, as the server reports. Some music apps and TVs don’t, and Stop would do nothing there.
Why isn’t transcoding a warning?
Transcoding is the server doing its job: a phone that can’t play a film’s format still gets it. The row says Transcoding so you can see it; it never counts as a problem.
What happens to the posters?
Legato fetches each poster from your server with your key, only while it’s on screen, and keeps up to 50 MB of them on this Mac, the oldest going first. They never go anywhere else.