upsert
Create or update a memory by semantic key, preserving history on overwrite. Use for stable values an agent overwrites over time, like config or preferences.
Instructions
Create-or-update a memory by semantic KEY (idempotent). If (namespace,key) exists it is superseded (history kept) and replaced; else created. Use for stable values an agent overwrites over time: a config value, a current decision, a user preference.
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": {
"text": "<text>",
"key": "<key>"
},
"name": "upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Stable semantic key, e.g. default_model or user.timezone. | |
| tags | No | ||
| text | Yes | The new value. | |
| namespace | No | facts |