search_plex_library
Find movies and TV shows in your Plex libraries by genre, actor, title, year, or library. Combine filters to see what you own or can watch.
Instructions
Searches the movies and TV shows actually in the user's Plex library (across all movie and show libraries, including 4K) by genre, actor, title, release year, and/or library. Filters can be combined, e.g. genre 'Horror' with year 1982, or genre 'Horror' with library '4k'. Pass mediaType 'movie' when the user asks about movies/films, 'show' for TV/series/shows, and leave it out (any) when the question is about titles in general, e.g. everything with an actor; a show in several libraries is one result, with its season and episode counts. Some libraries (such as Sports) may be left out unless named in the library filter. Use this to answer what the user owns or can watch; use check_movie_status for Radarr/download status of one specific movie. Watch state: use watched 'unwatched' (never played), 'inProgress' (started but not finished - this is the complete list of unfinished titles, unlike get_on_deck's short recent list) or 'watched' (finished), and notWatchedInYears for 'haven't watched in N years' (a never-watched title counts from when it was added); they are for the Plex account the app is connected with. sort orders by recentlyAdded, lastWatched or leastRecentlyWatched instead of by title. Also filter by network (or movie studio), contentRating (TV-MA, R...), minRating (audience rating 0-10), yearFrom/yearTo (a decade is 1990 to 1999) and addedWithinDays ('what showed up this week?'). Plex does not know whether a show is continuing or ended; use Sonarr tools for that. Always express a narrowing the user asks for (4K, a genre, a year, unwatched...) as a filter here rather than filtering results yourself, because the results table shown to the user contains exactly the rows this returns. The default limit is small: when the user wants everything ('all', 'every', 'list them'), pass limit 500; if the reply says more matches remain, call again with the offset it gives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Order the results (default title). | |
| year | No | Release year (a show's first air year). | |
| actor | No | Full actor name, e.g. 'Harrison Ford'. | |
| genre | No | Genre name, e.g. 'Horror' or 'Science Fiction'. | |
| limit | No | Maximum results to return (default 25, max 500). | |
| title | No | Part of the movie or show title. | |
| offset | No | Matches to skip, to fetch the next page of a long result. | |
| yearTo | No | Released in or before this year. | |
| library | No | Only search Plex libraries whose name contains this text, e.g. '4k' for the 4K libraries, 'kids', 'anime', 'sports'. | |
| network | No | TV network (shows) or studio (movies), e.g. 'HBO', 'Netflix'. | |
| watched | No | Only titles never played, started but not finished, or finished. | |
| yearFrom | No | Released in or after this year (a decade: 1990 to 1999). | |
| mediaType | No | Search only movies, only TV shows, or both (default any). | |
| minRating | No | Audience rating of at least this (0-10). | |
| contentRating | No | Content rating, e.g. 'TV-MA', 'PG-13', 'R'. | |
| addedWithinDays | No | Added to Plex within this many days. | |
| notWatchedInYears | No | Only titles not watched for this many years (a never-watched title counts from when it was added). |