run_command
Queue a Sonarr command by name to trigger allowed library or maintenance actions, including refreshes, searches, renames, scans, backups, and health checks.
Instructions
Queue a Sonarr command by name. Only library and maintenance commands are allowed: RefreshSeries, RescanSeries, SeriesSearch, SeasonSearch, EpisodeSearch, MissingEpisodeSearch, CutoffUnmetEpisodeSearch, RssSync, RenameFiles, RenameSeries, DownloadedEpisodesScan, ManualImport, RefreshMonitoredDownloads, ProcessMonitoredDownloads, ImportListSync, ClearBlocklist, Housekeeping, MessagingCleanup, CheckHealth, Backup. Commands that update the application or reset the API key are not available. Prefer the dedicated tools (refresh_series, search_series, ...) where one exists.
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": {
"name": "<name>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Command name, e.g. 'RssSync' | |
| params | No | Extra command body fields, e.g. { seriesId: 12 } or { episodeIds: [1, 2] }; a 'name' key is ignored |