novel_draft
Append each current writing segment to a human-readable draft mirror while the program tracks word count and returns nextAction to continue or ask the user when prompted.
Instructions
实时聊天写作的草稿镜像(只追加;AI 不读、不改、不管理):把当前正在写的这一段正文交给它,程序会追加到独立目录 <书库>/.novel-writer/drafts/<书>/ 并自行累计字数。返回 nextAction="continue" 就继续写下一段;返回 "ask_user" 就把 question 原样用提问工具问用户(combinedText 一起贴上),他回答前不要继续写。镜像只交给人看——不要读它、不要改它、不要自己判断何时提问,那由程序按字数阈值决定。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"book": "<book>",
"text": "<text>"
},
"name": "novel_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | Yes | 书名(与 novels/ 下的目录名一致)。 | |
| root | No | 章节库根目录。 | |
| text | Yes | 这一段正文(只传这一段,不要整章)。重复段落也照写,程序不去重。 | |
| action | Yes | 只有一个动作:commit(提交这一段正文)。镜像只追加,不提供读 / 改 / 清。 | |
| chapter | No | 章标识(章号 / 第NN章 / 标题),只用来命名镜像文件;省略则「未命名章」。 |