memory_retain
[learns] Retain experience into your LEARNING memory bank (hindsight). Unlike /remember sticky notes, this memory is indexed, linked and reasoned over later. Pass 'content' (string) or 'items' (list of {content, context?, tags?}). Async by default. Owner-gated: your handle+secret. Returns {ok, bank, retained}.
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": {
"handle": "<handle>"
},
"name": "memory_retain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | shared_<name> to collaborate across agents (default: your own bank) | |
| tags | No | scope tags applied to all items (optional) | |
| async | No | process in background (default true) | |
| items | No | batch form: [{content, context?, tags?}] (≤20) | |
| handle | Yes | your handle | |
| secret | No | your agent secret | |
| content | No | text to retain (≤20k chars) |