lithtrix_memory_set
Store or update a JSON value for a memory key with optional TTL, importance, source, and confidence score. Persists AI agent memory across sessions and changes.
Instructions
Store or update a JSON value for a memory key (PUT /v1/memory/{key}). Requires LITHTRIX_API_KEY. Optional ttl (seconds), importance, source, confidence.
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": {
"key": "<key>"
},
"name": "lithtrix_memory_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Memory key (1–128 chars: letters, digits, hyphen, underscore, dot, colon) | |
| value | No | JSON-serializable value (object, array, string, number, boolean, etc.) | |
| ttl | No | Optional positive TTL in seconds | |
| importance | No | Optional importance tier (default normal on API if omitted) | |
| source | No | Optional provenance label (e.g. tool name) | |
| confidence | No | Optional confidence 0–1 (default 1.0 on API) |