update_article
Edits an article's title, content, or active/archived status; content writes require a baseContentHash and are rejected on conflicts to prevent overwriting concurrent changes.
Instructions
Update an article's title, content, or status ('archived' takes it off the shelf without deleting it; 'active' brings it back). Writing content requires a baseContentHash — the one get_article returned for the version you edited. It is remembered automatically after get_article or create_article in this session; pass it explicitly otherwise. If someone else changed the prose since your version, the write is rejected as a conflict rather than overwriting their words. Creader checks this on the server where its article guard is deployed, which closes the race; until it is everywhere, this tool also re-reads the article just before writing, and on a deployment without the guard an edit that lands in the instant between that re-read and the write can still be overwritten. Owner only.
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": {
"articleId": "<articleId>"
},
"name": "update_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| status | No | ||
| content | No | HTML content — replaces the whole article | |
| articleId | Yes | Article ID | |
| baseContentHash | No | baseContentHash from get_article for the version this edit is based on |