Create AI memory item
create_ai_memory_itemSave an AI memory note. Scope: no entity → tenant-wide; entity_type only → about that whole entity type; entity_type + entity_id → about one specific record (customer, product, project, machine, …). Optionally scope to a brain/agent and set importance (1-5) or a mem_key for later upsert via save semantics.
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": {
"name": "<name>",
"description": "<description>"
},
"name": "create_ai_memory_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short title for the note | |
| mem_key | No | Optional stable handle — if set and a row with the same (agent_id, brain_id, mem_key) exists, it is UPDATED instead of duplicated | |
| agent_id | No | Optional: private to this agent (omit = shared across the tenant's agents) | |
| brain_id | No | Optional: the brain (category) this memory belongs to | |
| entity_id | No | Optional specific record UUID (requires entity_type) | |
| importance | No | 1-5, default 3 | |
| description | Yes | The note body | |
| entity_type | No | Optional entity type this note is about |