import_opml
Import RSS feed subscriptions from OPML XML content into FreshRSS to manage and organize your feed collection.
Instructions
Import subscriptions from OPML
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opml | Yes | OPML XML content to import |
Implementation Reference
- src/handlers/feed-handlers.ts:91-101 (handler)MCP tool registration and handler implementation for "import_opml". It invokes the client's importOpml method.
server.registerTool( 'import_opml', { description: 'Import subscriptions from OPML', inputSchema: importOpmlSchema, }, wrapTool('import_opml', async (args: z.infer<typeof importOpmlSchema>) => { await client.feeds.importOpml(args.opml); return textResult('Imported OPML subscriptions.'); }) ); - src/api/feed-service.ts:77-81 (handler)Actual implementation of the OPML import logic that communicates with the underlying HTTP client.
* Import subscriptions from OPML. */ async importOpml(opmlXml: string): Promise<void> { await this.http.postRaw('/reader/api/0/subscription/import', opmlXml); } - src/tools/feed-tools.ts:36-40 (schema)Zod schema definition for the "import_opml" tool inputs.
export const importOpmlSchema = z .object({ opml: z.string().min(1).describe('OPML XML content to import'), }) .strict();