update_chapter
Update a chapter's title or HTML content while using a base content hash to prevent overwriting concurrent edits; conflicting writes are rejected.
Instructions
Update chapter title or content. Writing content requires a baseContentHash — the one get_chapter returned for the version you edited. It is remembered automatically after get_chapter or create_chapter in this session; pass it explicitly otherwise. If someone else changed the chapter meanwhile, the write is rejected as a conflict rather than overwriting their words.
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": {
"chapterId": "<chapterId>"
},
"name": "update_chapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| content | No | HTML content | |
| chapterId | Yes | Chapter ID | |
| baseContentHash | No | baseContentHash from get_chapter for the version this edit is based on |