radarr_search_movie
Trigger a search to download a movie already in your Radarr library by specifying its movie ID.
Instructions
Trigger a search to download a movie that's already in your library
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movieId | Yes | Movie ID to search for |
Implementation Reference
- src/index.ts:451-463 (registration)Tool registration for radarr_search_movie, defining its name, description, and input schema expecting a movieId parameter.
name: "radarr_search_movie", description: "Trigger a search to download a movie that's already in your library", inputSchema: { type: "object" as const, properties: { movieId: { type: "number", description: "Movie ID to search for", }, }, required: ["movieId"], }, }, - src/index.ts:1704-1718 (handler)Handler for radarr_search_movie: extracts movieId from args, calls the RadarrClient.searchMovie method, and returns a success response with the command ID.
case "radarr_search_movie": { if (!clients.radarr) throw new Error("Radarr not configured"); const movieId = (args as { movieId: number }).movieId; const result = await clients.radarr.searchMovie(movieId); return { content: [{ type: "text", text: JSON.stringify({ success: true, message: `Search triggered for movie`, commandId: result.id, }, null, 2), }], }; } - src/arr-client.ts:671-682 (helper)Helper method on RadarrClient that sends a POST to the /command API endpoint with name 'MoviesSearch' and the movieId to trigger a search/download for a movie already in the library.
/** * Trigger a search for a movie */ async searchMovie(movieId: number): Promise<{ id: number }> { return this['request']<{ id: number }>('/command', { method: 'POST', body: JSON.stringify({ name: 'MoviesSearch', movieIds: [movieId], }), }); }