export_opml
Export all RSS feed subscriptions from FreshRSS in OPML format for backup or migration to other feed readers.
Instructions
Export all subscriptions as OPML
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_opml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/feed-handlers.ts:79-89 (handler)Registration of the 'export_opml' tool handler.
server.registerTool( 'export_opml', { description: 'Export all subscriptions as OPML', inputSchema: exportOpmlSchema, }, wrapTool('export_opml', async () => { const opml = await client.feeds.exportOpml(); return textResult(opml); }) ); - src/api/feed-service.ts:72-74 (handler)The actual service method implementation that fetches the OPML data via HTTP.
async exportOpml(): Promise<string> { return this.http.getText('/reader/api/0/subscription/export'); } - src/tools/feed-tools.ts:34-34 (schema)Schema definition for the 'export_opml' tool input.
export const exportOpmlSchema = z.object({}).strict();