Agent memory: save
memory_setSave, overwrite, or delete persistent key-value memory for AI agents across sessions, keys, and wallets, with optional expiry. Store text or JSON under a key and read it back later.
Instructions
Persistent memory for AI agents that survives across sessions, keys and wallets: save, overwrite or delete a value (text or JSON, up to 16,384 characters) under a key, with an optional expiry. Up to 500 keys per memory. Read it back with memory_get. Costs $0.002 per call.
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": {
"secret": "<secret>",
"key": "<key>"
},
"name": "memory_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key, e.g. "user:42:preferences". | |
| value | No | Any JSON value or text. Omit (or use delete: true) to delete the key. | |
| delete | No | Delete this key. | |
| secret | Yes | Your private memory secret (16+ chars). The same secret always opens the same memory; share it to share memory between agents. Keep it secret: anyone with it can read and write. | |
| ttl_seconds | No | Expire after this many seconds (60 s to 1 year). Default: never. |