upsert canon entry
upsert_canon_entrySaves user-approved facts or canon revisions, including story-level TONE, STORY_TYPE, and WRITING_STYLE. TONE is mood. STORY_TYPE is genre, audience, and format. WRITING_STYLE is POV, tense, voice, dialogue, banned phrases, and approved examples; put parseable lines in content such as 'POV: third person limited', 'Tense: past', and 'Banned: very, suddenly'. LOCKED entries change only after the author approves them. Existing entries require their current expectedRevision; conflicting edits fail without overwriting. Identical retries preserve revision history.
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 | ||
| canon | No | false marks a temporary, alternate, or what-if entry as non-canon. Omit to keep the current value; new entries default to canon. | |
| title | Yes | ||
| status | Yes | ||
| content | Yes | ||
| expiresAt | No | Optional ISO 8601 date or datetime after which a non-canon or temporary entry expires. Omit to keep, null to clear. | |
| projectId | Yes | ||
| revisionReason | No | ||
| expectedRevision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |