export_library
Export a full Plex library as JSON: write it to ./exports over stdio, or return an MCP resource link for resources/read over HTTP.
Instructions
Export a full library as JSON. Over stdio it is written to a file under ./exports; over HTTP it is returned as an MCP resource link to read with resources/read
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"libraryKey": "<libraryKey>"
},
"name": "export_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Media type (movie, show, season, episode, artist, album, track) | |
| pageSize | No | Items per page for export (default: 500) | |
| libraryKey | Yes | Library section key | |
| outputPath | No | Optional relative path under ./exports (default: library_{key}_{timestamp}.json). stdio only; ignored over HTTP |