catchup_feed
Mark articles as read in Tiny Tiny RSS feeds or categories to manage unread content. Specify time ranges like all, 1 day, 1 week, or 2 weeks for targeted cleanup.
Instructions
将订阅源或分类中的所有文章标记为已读。mode 可选: all (全部), 1day, 1week, 2week
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed_id | Yes | 源或分类 ID | |
| is_cat | No | feed_id 是否为分类 ID | |
| mode | No | 标记范围 | all |
Implementation Reference
- src/tools/articles.ts:135-142 (handler)The handler function for the 'catchup_feed' tool, which calls the client's catchupFeed method.
async (params) => { try { await client.catchupFeed(params); return ok("标记已读成功"); } catch (e: unknown) { return fail(`标记已读失败: ${(e as Error).message}`); } }, - src/tools/articles.ts:130-134 (schema)Input schema for the 'catchup_feed' tool.
{ feed_id: z.number().describe("源或分类 ID"), is_cat: z.boolean().default(false).describe("feed_id 是否为分类 ID"), mode: z.enum(["all", "1day", "1week", "2week"]).default("all").describe("标记范围"), }, - src/tools/articles.ts:127-143 (registration)Tool registration for 'catchup_feed' in src/tools/articles.ts.
server.tool( "catchup_feed", "将订阅源或分类中的所有文章标记为已读。mode 可选: all (全部), 1day, 1week, 2week", { feed_id: z.number().describe("源或分类 ID"), is_cat: z.boolean().default(false).describe("feed_id 是否为分类 ID"), mode: z.enum(["all", "1day", "1week", "2week"]).default("all").describe("标记范围"), }, async (params) => { try { await client.catchupFeed(params); return ok("标记已读成功"); } catch (e: unknown) { return fail(`标记已读失败: ${(e as Error).message}`); } }, );