Create or update a knowledge-base article
kb_upsert_articleYour organization's knowledge base (not Spun's product documentation; use search_knowledge for that). Create a new article in it, or update an existing manual article by source_id. Live for the AI assistant at once. Re-sending identical title, content and tags is a no-op (status "unchanged"), with or without source_id. Content that exists in or overlaps another article is refused (conflict, naming it): update that article by source_id or change the text. Articles created this way are attributed to this AI connection in the Knowledge Base settings. Nothing is sent to anyone.
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": {
"title": "<title>",
"content": "<content>"
},
"name": "kb_upsert_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags (letters, digits, - and _; at most 10, each up to 30 characters). Case-insensitive. | |
| title | Yes | Article title | |
| content | Yes | Article text, plain text or Markdown, up to 20000 characters | |
| source_id | No | To update an existing manual article, its source_id. Omit to create a new article. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| title | Yes | ||
| status | Yes | ||
| source_id | Yes | ||
| chunk_count | Yes | ||
| total_tokens | Yes |