Refresh and scan a library
trigger_scanAsks a service to reconcile itself with what is on disk: the "it downloaded but will not play" fix, and the usual fix for a stale scan diagnose_media reports.
Instructions
Asks a service to reconcile itself with what is on disk: the "it downloaded but will not play" fix, and the usual fix for a stale scan diagnose_media reports. No id rescans the whole library; on Prowlarr it pushes the indexer list to the apps. An id refreshes and rescans one item. On Jellyfin, Emby and Plex a scan only finds changed files; wrong metadata is fix_metadata. action: rename (files to the service's naming, needs id), bookdrop (rescan Grimmory's Bookdrop). Importing a download: import_download. Most actions queue and return; follow them in get_stack_health commands. Previews first; confirm to run. Field reference: arr://docs/trigger_scan.
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": {
"service": "<service>"
},
"name": "trigger_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | One movie, series, Lidarr artist or book id: `acquisition.id` on a get_library record. Omit with action: "scan" to scan the whole library. | |
| action | No | scan rescans the library, or just one item when `id` is given (on Lidarr only the refresh narrows to one artist: the rescan still reads every root folder); on an *arr it refreshes metadata from the provider first. rename renames one item's files to the service's own naming scheme, and requires `id`. bookdrop rescans Grimmory's Bookdrop folder for new files. | scan |
| confirm | No | The token from this tool's preview; pass it back to apply. | |
| dry_run | No | Preview only, no token issued: for "what if" questions, not the first step of a change. | |
| library | No | Grimmory only: one library, by name or by id as get_stack_health and get_library show it. Omit to rescan every library. | |
| service | Yes | prowlarr syncs its indexers to the apps. | |
| instance | No | Which instance (e.g. "4k") when several of this service exist. Omit it when there is one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noop | Yes | ||
| tier | Yes | ||
| tool | Yes | ||
| target | Yes | ||
| applied | Yes | ||
| dry_run | Yes | ||
| effects | Yes | ||
| service | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| permission | Yes |