Change a knowledge entry
update_knowledgeSaves a new version of a knowledge entry with a new kind, title and body (send all three, the whole entry). Every earlier version stays in its history and can be brought back with restore_knowledge_version. Send the newest version number you read; if someone saved a newer version since, nothing is saved and the answer is stale with the newest number.
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": {
"knowledge_id": "<knowledge_id>",
"expected_version": "<expected_version>",
"kind": "<kind>",
"title": "<title>",
"body": "<body>"
},
"name": "update_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The entry itself, in Markdown. Headings split it into the passages a search finds, so give each topic its own heading. | |
| kind | Yes | What the entry is, such as note, decision, house-rule, glossary, faq, brand-voice or style-guide (list_knowledge_kinds gives every kind and when to use it). | |
| title | Yes | A short title that says what the entry is about. | |
| applies_to | No | What part of the project the entry is about, such as a house rule for the shop pages only. A part or service needs project_id; an area works for the workspace too. null: the whole project (or every project). Left out on update_knowledge, the entry keeps what it had. | |
| project_id | No | The project the entry is in. May be left out: the entry's id finds its own project or the workspace. | |
| knowledge_id | Yes | The entry (list_knowledge and search_knowledge give ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| expected_version | Yes | The entry's newest version number when you read it (read_knowledge or list_knowledge_versions gives it). If someone saved a newer version since, nothing changes and the answer is stale with the newest number: read the entry again first. |