aiworkhub_manager_kb_write
Writes canonical knowledge base data by upserting, ingesting, superseding, or archiving entries with idempotency and provenance tracking.
Instructions
MANAGER WRITE: upsert, ingest, supersede, or archive canonical KB data.
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": {
"action": "<action>",
"key": "<key>",
"idempotency_key": "<idempotency_key>",
"provenance": "<provenance>"
},
"name": "aiworkhub_manager_kb_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | KB entry key, non-blank, at most 256 bytes. | |
| body | No | Entry text, at most 32 KiB; required except for archive. | |
| tags | No | Tag string, at most 1024 bytes; default empty. | |
| title | No | Entry title, at most 1024 bytes; required except for archive. | |
| action | Yes | upsert or ingest creates or updates the entry for key, supersede stores a new entry under replacement_key and marks the old one superseded, archive retires the entry. | |
| category | No | Category label, at most 128 bytes; default empty. | |
| provenance | Yes | Non-blank provenance text recorded in the audit row, at most 2048 bytes. | |
| source_refs | No | Source references for the entry, at most 2048 bytes; default empty. | |
| idempotency_key | Yes | 8-192 characters matching ^[A-Za-z0-9][A-Za-z0-9_.:-]{7,191}$; replaying a key returns the first result instead of writing again. | |
| replacement_key | No | Key of the new entry that supersedes key, at most 256 bytes and not already in use; required for supersede. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||