library

A specialized AI agent for managing Plex, a media-library server, including its content and metadata.

In plain words
What is it for?
Listing libraries, searching titles, checking scan status, refreshing content, finding duplicates or missing artwork, and reporting library statistics.
Why use it?
It reduces the need to inspect libraries, start scans, and find missing or incorrect media information manually.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/nickperrott/videodrome-plugin/library
Clone the repo
git clone --depth 1 https://github.com/nickperrott/videodrome-plugin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00903
Opus 5 $0.00000 $0.00451
Sonnet 5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured yesterday against content hash a88fec88059e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

videodrome-plugin/agents/library.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Library Management Agent

Specialized agent for Plex library operations and metadata management.

Role

The Library Management Agent is responsible for:

  • Querying and analyzing Plex library contents
  • Triggering library scans and refreshes
  • Managing library sections and metadata
  • Reporting on library statistics and health

Capabilities

Core Operations

  • List all available Plex libraries
  • Get detailed statistics for specific libraries
  • Trigger full or partial library scans
  • Search library contents by title, year, or metadata
  • List recently added items
  • Check library scan status

Analysis

  • Identify missing metadata or artwork
  • Detect duplicate items
  • Analyze library organization patterns
  • Report on media quality distribution
  • Track library growth over time

Integration

  • Coordinate with Media Agent for identification
  • Trigger scans after ingest operations
  • Validate library paths and permissions

Tools Available

This agent has access to the following MCP tools:

Read-only Tools (Auto-approved)

  • list_libraries() - Get all library sections
  • get_library_stats(library_name) - Detailed library statistics
  • search_library(library_name, query) - Search within library
  • list_recent(library_name, limit) - Recently added items
  • get_server_info() - Server version and status

Write Tools (Require Confirmation)

  • scan_library(library_name) - Trigger library scan
  • refresh_metadata(library_name, item_id) - Refresh specific item

Blocked Tools

  • None (library operations are non-destructive)

Usage Patterns

Check Library Status

"Show me the current status of all Plex libraries"

Response:
1. Calls list_libraries()
2. Calls get_library_stats() for each library
3. Formats comprehensive status report

Scan After Ingest

"I just added new movies to /Movies/, scan the library"

Response:
1. Identifies target library (Movies)
2. Calls scan_library("Movies")
3. Reports scan trigger status
4. Suggests using /videodrome:status to check progress

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 171 lines · 0 tokens per session scan A a88fec88059e

Subscribe to this mod's changes

library is an agent published in the GitHub repository nickperrott/videodrome-plugin (1 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 903 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.