Integrations

Plex

Browse your servers and libraries, search, see what is recently added, on deck and playing now, mark things watched, refresh a library and play or cast.

XataWorks Browser showing the Plex web app’s home, with What’s On Now and Tune In Now rows, with the page-tools list open over it from the browser toolbar, headed Page tools (16), with a filter box, chips for each class, and the tools listed with their classes, beginning with Get the Plex account, List Plex servers and List Plex libraries, each Read only.
The Plex web app at app.plex.tv: every tool its adapter offers.

Where it works

The Plex web app, at app.plex.tv, and the Plex Media Servers your account can reach.

Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.

How it works

The tools use the sign-in the Plex web app already holds, read inside the page and sent only to Plex and your own servers.

Tools

Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.

Reads Read only

These only look things up.

  • Get the Plex account get_accountReturn the signed-in Plex account (username, email, subscription) from plex.tv.
  • List Plex servers list_serversList the Plex Media Servers on this account (name, machine identifier, owned flag, product version, reachable connections).
  • List Plex libraries list_librariesList the libraries (sections) on a Plex server — e.g.
  • Search Plex searchSearch a Plex server’s libraries for movies, shows, episodes, artists or tracks matching a query.
  • Get a Plex item get_itemOne Plex item (by rating_key) with its parent and grandparent rating keys (a track’s album and artist, an episode’s season and show) and external_ids — the ids other sites know it by: musicbrainz, imdb, tmdb, tvdb.
  • List recently added list_recently_addedList recently added items on a Plex server (optionally within one library section).
  • List On Deck list_on_deckList the "On Deck" / Continue Watching items for the account on a Plex server (partially watched or next-up episodes).
  • Get now playing get_now_playingList what is currently playing on a Plex server (active sessions: title, user, player, state, progress).
  • List Plex clients list_clientsList the Plex players/clients currently connected to a server that can be cast to (name, machine_identifier, product, platform, can_play).
  • Get Plex session capabilities get_capabilitiesReport whether the Plex token in the browser can use the API (the account probe), and the number of servers discovered.

Adds and changes Mutating

These change something, and the adapter declares the change additive: a create, an append, a status set.

  • Save Plex artwork to this chat save_artworkSave a Plex item’s artwork (by rating_key) as an image file kept in this chat — the result’s downloads names the file, and you can look at the image from the next turn. kind: poster (default), background, show_poster (an episode’s or season’s show) or season_poster (an episode’s season). width is in pixels (default 1000, 100–2000; never larger than the original).
  • Mark watched mark_watchedMark a Plex item (by rating_key) as watched on a server.
  • Mark unwatched mark_unwatchedMark a Plex item (by rating_key) as unwatched on a server.
  • Refresh a library refresh_libraryTrigger a scan/refresh of a Plex library section (by its section key from list_libraries) so newly added files are picked up.
  • Play in Plex playStart playback of a Plex item IN THE BROWSER TAB (the tab is the signed-in Plex web player).
  • Cast to a Plex client play_on_clientCast a Plex item to a SEPARATE Plex player (an Apple TV, phone, or another Plex app) and start it THERE — not in this browser tab.

See Page tools in the user guide for how to see what a tab offers, or every integration.