list_folders
Retrieve all RSS feed categories and folders from your FreshRSS instance to organize and manage your subscriptions.
Instructions
List all folders/categories
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tag-handlers.ts:18-33 (handler)The implementation of the 'list_folders' tool handler, which calls client.tags.list() and formats the output.
wrapTool('list_folders', async () => { const { folders } = await client.tags.list(); if (folders.length === 0) { return textResult('No folders found.'); } const formatted = folders .map((f) => { const unread = f.unreadCount !== undefined ? ` (${f.unreadCount.toString()} unread)` : ''; return `- ${f.name}${unread}`; }) .join('\n'); return textResult(formatted); }) - src/handlers/tag-handlers.ts:12-17 (registration)Registration of the 'list_folders' tool in the MCP server.
server.registerTool( 'list_folders', { description: 'List all folders/categories', inputSchema: z.object({}).strict(), },