lidarr_search_missing
Initiate a search for all missing albums for an artist using their artist ID, so they can be queued for download.
Instructions
Trigger a search for all missing albums for an artist
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artistId | Yes | Artist ID to search missing albums for |
Implementation Reference
- src/index.ts:593-606 (registration)Registration of the lidarr_search_missing tool with input schema requiring artistId (number).
{ name: "lidarr_search_missing", description: "Trigger a search for all missing albums for an artist", inputSchema: { type: "object" as const, properties: { artistId: { type: "number", description: "Artist ID to search missing albums for", }, }, required: ["artistId"], }, }, - src/index.ts:1856-1870 (handler)Handler for lidarr_search_missing tool call. Validates Lidarr is configured, extracts artistId from args, calls clients.lidarr.searchMissingAlbums(artistId), and returns success response with commandId.
case "lidarr_search_missing": { if (!clients.lidarr) throw new Error("Lidarr not configured"); const artistId = (args as { artistId: number }).artistId; const result = await clients.lidarr.searchMissingAlbums(artistId); return { content: [{ type: "text", text: JSON.stringify({ success: true, message: `Search triggered for missing albums`, commandId: result.id, }, null, 2), }], }; } - src/arr-client.ts:759-767 (helper)Helper method on LidarrClient that sends a POST request to /command with name 'ArtistSearch' and the given artistId to trigger a search for missing albums.
async searchMissingAlbums(artistId: number): Promise<{ id: number }> { return this['request']<{ id: number }>('/command', { method: 'POST', body: JSON.stringify({ name: 'ArtistSearch', artistId, }), }); }