remove_labels
Remove labels from articles in FreshRSS to organize your RSS feeds by deleting unwanted tags from specific posts.
Instructions
Remove labels from articles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articleIds | Yes | Article IDs to modify | |
| labels | Yes | Label names to add/remove |
Implementation Reference
- src/handlers/tag-handlers.ts:80-85 (handler)The handler function for the 'remove_labels' tool, which takes articleIds and labels, and calls client.tags.removeFromArticles.
wrapTool('remove_labels', async (args: z.infer<typeof modifyLabelsSchema>) => { await client.tags.removeFromArticles(args.articleIds, args.labels); return textResult( `Removed labels [${args.labels.join(', ')}] from ${args.articleIds.length.toString()} article(s).` ); }) - src/handlers/tag-handlers.ts:74-86 (registration)The registration of the 'remove_labels' tool on the server instance.
server.registerTool( 'remove_labels', { description: 'Remove labels from articles', inputSchema: modifyLabelsSchema, }, wrapTool('remove_labels', async (args: z.infer<typeof modifyLabelsSchema>) => { await client.tags.removeFromArticles(args.articleIds, args.labels); return textResult( `Removed labels [${args.labels.join(', ')}] from ${args.articleIds.length.toString()} article(s).` ); }) ); - src/tools/tag-tools.ts:6-11 (schema)The input schema 'modifyLabelsSchema' used by 'remove_labels'.
export const modifyLabelsSchema = z .object({ articleIds: z.array(z.string()).min(1).describe('Article IDs to modify'), labels: z.array(z.string()).min(1).describe('Label names to add/remove'), }) .strict();