update_chapter
Overwrite an existing draft chapter by item_id to revise its title or body content; chapters already submitted for review cannot be changed.
Instructions
覆盖更新已存在的章节(按 item_id,来自 list_chapters)。仅草稿可改;已提交审核的章节改不了(平台返回 -3027)。
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": {
"item_id": "<item_id>"
},
"name": "update_chapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | 新正文从文件读取(与 content 二选一) | |
| title | No | 新标题(可选) | |
| book_id | No | 可选;默认当前选中书 | |
| content | No | 新正文(纯文本或 <p> HTML) | |
| item_id | Yes | 章节 item_id | |
| volume_id | No | 可选;分卷 id | |
| volume_name | No | 可选;分卷名 |