plex_media
Browse, search, and update metadata in your Plex library. Filter by genre, actor, rating, or recency to discover and manage media.
Instructions
Comprehensive media management operations for Plex Media Server.
PORTMANTEAU PATTERN RATIONALE: Consolidates media browsing, advanced searching, and metadata updates into a single tool. Optimizes for discovery and detail retrieval across all library types.
OPERATIONS:
browse: Browse library contents with optional filtering.
search: Advanced search across libraries with multiple filters.
get_details: Get comprehensive details about a specific media item.
get_recent: Get recently added media items.
update_metadata: Update metadata (title, year, summary) for an item.
Return Format
{"success": bool, "data": dict|list, "operation": str, "count": int}
Examples
await plex_media(operation="browse", library_id="1") await plex_media(operation="search", query="inception") await plex_media(operation="get_details", media_key="12345")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Filter by release year. | |
| actor | No | Filter by actor name. | |
| genre | No | Filter by genre name. | |
| limit | No | Maximum number of results to return. | |
| query | No | Search query string for text-based searches. | |
| offset | No | Number of results to skip for pagination. | |
| director | No | Filter by director name. | |
| metadata | No | Metadata fields to update (title, year, summary, etc.). | |
| media_key | No | Key of the specific media item for detail or update operations. | |
| operation | Yes | The media operation to perform. | |
| unwatched | No | Filter to only unwatched items. | |
| library_id | No | ID of the library to browse or search within. | |
| media_type | No | Filter by media type (movie, episode, track). | |
| min_rating | No | Minimum rating filter (0.0-10.0). |