Scan library
scan_libraryTriggers a Plex library scan so newly added or removed disk files are picked up; optionally limit the scan to one server-side folder path.
Instructions
Trigger 'Scan Library Files' for one library so Plex picks up added or removed files on disk. Safe: never modifies media files or metadata edits, and never re-downloads metadata. Optional path limits the scan to one server-side folder (find valid paths via get_item file.paths). Scans run async. Poll list_libraries and watch 'refreshing'.
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": {
"library": "<library>"
},
"name": "scan_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| library | Yes |