Repair wrong metadata
fix_metadataRepairs films and series whose Jellyfin or Plex metadata does not match the file on disk, previewing re-identification against TVDB or TMDB before applying confirmed metadata replacement.
Instructions
Repairs films and series whose Jellyfin or Plex metadata does not describe the file on disk (a file Episode 101 shown as S1E1 with another title). Not trigger_scan, which never replaces a wrong title. Give a title as query, or the id get_metadata_issues printed. The preview lists numbering findings (confident) and title findings (advisory); a film is judged on year and title. Destructive: re-identifies the item against TVDB or TMDB and replaces all its metadata, hand edits included, with no undo on Jellyfin. Locked fields are never overwritten. When the preview says a refresh cannot move the episodes, use trigger_scan action: "rename" on the Sonarr series, then a media-server rescan. On Jellyfin the repair holds the request open a long time: do not retry. A Grimmory book is grimmory:<book id>, matched by ISBN or title and author. Previews first; confirm to apply. Field reference: arr://docs/fix_metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The media server item id, as get_metadata_issues prints it (`plex:119962`) or bare, or a Grimmory book as `grimmory:<book id>`. Wins over `query`. | |
| isbn | No | Books only: search Grimmory's providers by this ISBN instead of the book's own. | |
| user | No | Whose view of the library to read the episodes through. Defaults to the media server's default_user; on Jellyfin, naming anyone else needs services.jellyfin.allow_other_users. | |
| query | No | A film or series title. Resolved through the library index, the same way get_media_details resolves one. | |
| confirm | No | The token from this tool's preview, passed back verbatim to apply it. Single-use and bound to the previewed arguments. | |
| dry_run | No | Preview without a confirm token, for "what would happen if" questions; not the first step of a real change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noop | Yes | ||
| tier | Yes | ||
| tool | Yes | ||
| result | No | ||
| target | Yes | ||
| applied | Yes | ||
| dry_run | Yes | ||
| effects | Yes | ||
| service | Yes | ||
| summary | Yes | ||
| audit_id | No | ||
| warnings | No | ||
| operation | Yes | ||
| unchecked | No | ||
| next_steps | No | ||
| permission | Yes | ||
| confirm_error | No | ||
| confirm_token | No |