Update Document
update_documentReplace the content, type, or title of an existing document you own, addressed by slug. Overwrites rather than appends, so it is non-additive; re-running with the same arguments yields the same result. Pass if_match (the revision from a read) to refuse the write if the document changed since you read it. To change only part of a document, prefer edit_document or append_to_document when they are available. If the result lists warnings about parts of an HTML page that will not work for viewers, tell the user about them in plain words, skip any technical names, and offer to make the fix.
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": {
"slug": "<slug>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The slug of the document to update | |
| title | No | New document title | |
| content | No | New document content | |
| if_match | No | Optional revision (such as "r12") from your last read. If the document has changed since, nothing is written. | |
| content_type | No | New content type |