kb_write
Write or update entity records in a knowledge base to persist decisions, task state, and patterns mid-session, merging with existing data to maintain project context across sessions.
Instructions
Write or update an entity record in a KB. Use this mid-session to persist decisions, task state, patterns, or any structured note. Merges with existing record — only non-empty fields overwrite.
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": {
"topic": "<topic>",
"entity_type": "<entity_type>",
"name": "<name>",
"data": "<data>"
},
"name": "kb_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Record fields as a JSON object | |
| name | Yes | Record name — used as filename | |
| topic | Yes | KB topic (e.g. "claude_context") | |
| entity_type | Yes | Entity type (e.g. "decision", "active_task") |