lidarr_get_root_folders
Retrieve available root folders for Lidarr to identify valid rootFolderPath values when adding a new artist.
Instructions
Get available root folders for Lidarr. Use this to find valid rootFolderPath values when adding an artist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:661-668 (registration)The tool 'lidarr_get_root_folders' is registered in the TOOLS array within the Lidarr section. It has an empty input schema and a description for use when adding an artist.
name: "lidarr_get_root_folders", description: "Get available root folders for Lidarr. Use this to find valid rootFolderPath values when adding an artist.", inputSchema: { type: "object" as const, properties: {}, required: [], }, }, - src/index.ts:1919-1928 (handler)The handler case for 'lidarr_get_root_folders' in the CallToolRequestSchema switch statement. It calls clients.lidarr.getRootFolders() and returns the result as JSON.
case "lidarr_get_root_folders": { if (!clients.lidarr) throw new Error("Lidarr not configured"); const folders = await clients.lidarr.getRootFolders(); return { content: [{ type: "text", text: JSON.stringify(folders, null, 2), }], }; } - src/arr-client.ts:453-455 (helper)The getRootFolders() method on ArrClient (inherited by LidarrClient). It calls the /rootfolder API endpoint and returns an array of root folders with id, path, and freeSpace.
async getRootFolders(): Promise<Array<{ id: number; path: string; freeSpace: number }>> { return this.request<Array<{ id: number; path: string; freeSpace: number }>>('/rootfolder'); }