upsert canon entry
upsert_canon_entrySave or revise an approved canon fact while preserving its title and kind. Prevent conflicting edits with revision checks so story details stay consistent across chats.
Instructions
Save a fact or revise canon only after the user approves it. Preserve the existing title/kind. LOCKED requires approval as established fact; brainstorming is not approval. Existing entries require expectedRevision from retrieval; conflicting edits fail without overwriting. Identical retries leave revision history unchanged.
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": {
"projectId": "<projectId>",
"kind": "<kind>",
"title": "<title>",
"status": "<status>",
"content": "<content>"
},
"name": "upsert_canon_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| tags | No | ||
| title | Yes | ||
| status | Yes | ||
| content | Yes | ||
| projectId | Yes | ||
| revisionReason | No | ||
| expectedRevision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |