plex_metadata
Manage Plex media metadata through refresh, update, match, analyze, and organize operations to keep library information accurate.
Instructions
Comprehensive metadata management operations for Plex Media Server.
PORTMANTEAU PATTERN RATIONALE: Consolidates 7 metadata lifecycle operations into a single tool to ensure consistent identifier handling and improved discovery of library maintenance tasks.
Return Format
{"success": bool, "operation": str, "data": dict|list, "item_id": str|None, "library_id": str|None}
Examples
await plex_metadata(operation="refresh", library_id="1", force=True) await plex_metadata(operation="refresh_all") await plex_metadata(operation="update", item_id="123", metadata={"title": "New Title"}) await plex_metadata(operation="analyze", library_id="1")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force refresh even if recently updated. | |
| item_id | No | ID of the target media item. | |
| match_id | No | Match identifier for fix_match operation. | |
| metadata | No | Metadata fields to update. | |
| patterns | No | Organization patterns (e.g., naming format). | |
| operation | Yes | The metadata operation to perform. | |
| library_id | No | ID of the target library. | |
| media_type | No | Type of media for matching. |