保存 / 更新本地文稿
save_articleStore article bodies in the local library and return an article_id, creating or updating entries. Accepts inline content or a file path for chapters and short stories.
Instructions
把正文入库(data/articles.json),返回 article_id,避免把长文本反复塞进工具参数。不传 article_id = 新建;传 article_id = 改已有条目(只覆盖显式传入的字段,标题/正文/章节号/状态/绑定 id 都能改)。kind=chapter 可带 novel_id/chapter_number;kind=short 用于短篇。正文可用 content 或 file_path。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | chapter=小说章节,short=短篇正文(新建时默认 chapter) | |
| title | No | 标题(新建时必填) | |
| status | No | 初始状态,默认 draft | |
| content | No | 正文(与 file_path 二选一) | |
| novel_id | No | 归属的本地小说 id(kind=chapter) | |
| file_path | No | 正文文件路径(UTF-8 文本) | |
| article_id | No | 要修改的本地文稿 article_id;不传则新建 | |
| qimao_book_id | No | 已绑定的七猫 book_id(可选) | |
| chapter_number | No | 章节号(kind=chapter) |