share_to_published
Publish articles to your Tiny Tiny RSS feed by creating entries in the Published source with title, URL, and content.
Instructions
创建一篇文章到已发布 (Published) 源中
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | 文章标题 | |
| url | Yes | 文章 URL | |
| content | Yes | 文章内容 |
Implementation Reference
- src/tools/articles.ts:145-161 (handler)Tool registration and handler definition for 'share_to_published'. It wraps the client's 'shareToPublished' method.
server.tool( "share_to_published", "创建一篇文章到已发布 (Published) 源中", { title: z.string().describe("文章标题"), url: z.string().url().describe("文章 URL"), content: z.string().describe("文章内容"), }, async (params) => { try { await client.shareToPublished(params); return ok("分享到已发布成功"); } catch (e: unknown) { return fail(`分享失败: ${(e as Error).message}`); } }, ); - src/ttrss-client.ts:131-137 (handler)Actual implementation of the shareToPublished method in TtrssClient, which sends the request to the API.
async shareToPublished(params: { title: string; url: string; content: string; }): Promise<{ status: string }> { return this.request("shareToPublished", params); }