export_library
Export a Plex library to a JSON file for data backup or analysis. Specify library key and media type to customize export.
Instructions
Export a full library to a JSON file (within ./exports)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryKey | Yes | Library section key | |
| type | No | Media type (movie, show, episode, artist, album, track) | |
| outputPath | No | Optional relative path under ./exports (default: library_{key}_{timestamp}.json) | |
| pageSize | No | Items per page for export (default: 500) |