Library stats
library_statsAggregate Plex library totals, watched and unwatched counts, genre/decade/content-rating breakdowns, and optional per-user play counts from watch history.
Instructions
Aggregate stats for a library: totals, watched AND unwatched counts, genre/decade/contentRating breakdowns. includeUserStats=true adds per-user play counts from watch history (recent 10,000 plays).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "library_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | see the library as this Plex Home user (name or id) | |
| library | No | Movies | |
| includeUserStats | No |