unsubscribe_feed
Remove an RSS feed from your Tiny Tiny RSS subscriptions by specifying the feed ID to stop receiving updates.
Instructions
取消订阅指定的 RSS 源
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed_id | Yes | 要取消订阅的源 ID |
Implementation Reference
- src/tools/feeds.ts:120-126 (handler)The tool handler for "unsubscribe_feed" which calls the client's unsubscribeFeed method.
async ({ feed_id }) => { try { await client.unsubscribeFeed(feed_id); return { content: [{ type: "text" as const, text: "取消订阅成功" }] }; } catch (e: unknown) { return { content: [{ type: "text" as const, text: `取消订阅失败: ${(e as Error).message}` }], - src/tools/feeds.ts:114-119 (registration)The registration of the "unsubscribe_feed" tool with its input schema.
server.tool( "unsubscribe_feed", "取消订阅指定的 RSS 源", { feed_id: z.number().describe("要取消订阅的源 ID"), }, - src/ttrss-client.ts:148-150 (helper)The actual client implementation that performs the API request to unsubscribe from a feed.
async unsubscribeFeed(feedId: number): Promise<{ status: string }> { return this.request("unsubscribeFeed", { feed_id: feedId }); }