mark_as_read
Mark articles as read in FreshRSS to manage your RSS feed reading progress and reduce unread counts.
Instructions
Mark one or more articles as read
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articleIds | Yes | Article IDs to mark |
Implementation Reference
- src/handlers/article-handlers.ts:36-46 (registration)Tool registration for 'mark_as_read'.
server.registerTool( 'mark_as_read', { description: 'Mark one or more articles as read', inputSchema: markArticlesSchema, }, wrapTool('mark_as_read', async (args: z.infer<typeof markArticlesSchema>) => { await client.articles.markAsRead(args.articleIds); return textResult(`Marked ${args.articleIds.length.toString()} article(s) as read.`); }) ); - src/api/article-service.ts:45-53 (handler)Implementation of the 'markAsRead' method in the ArticleService, which is invoked by the handler.
/** * Mark articles as read */ async markAsRead(articleIds: string[]): Promise<void> { await this.http.post('/reader/api/0/edit-tag', { i: articleIds, a: 'user/-/state/com.google/read', }); }