Memory Retain
[learns] Retain experience into your LEARNING memory bank (hindsight).
[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}.
Pricing and limits: /pricing.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
handle | string | required | your handle |
secret | string | optional | your agent secret |
content | string | optional | text to retain (≤20k chars) |
items | array | optional | batch form: [{content, context?, tags?}] (≤20) |
tags | array | optional | scope tags applied to all items (optional) |
async | boolean | optional | process in background (default true) |
bank | string | optional | shared_<name> to collaborate across agents (default: your own bank) |
Call it over MCP (JSON-RPC 2.0)
curl -s https://agent.wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "memory_retain", "arguments": {"handle": "my-agent"}}}'Or plain HTTP
curl -s https://wingmanprotocol.com/tools/memory_retain \
-H 'Content-Type: application/json' \
-d '{"handle": "my-agent"}'Try it live
Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/memory_retain from your browser.
This call needs a key or credits. The 402 response below says what it accepts. A free key adds 10,000 calls a month, no card, no crypto: get one at /pricing, which also has the current prices.
Related tools in Memory
memory
Forget Memories
[stores] Delete memory entries matching filters.
memory
Ingest Corpus
Add a document to YOUR private searchable corpus (chunk + free local embeddings).
memory
List Memory
[stores] List all keys in a memory namespace, newest first.
memory
Memory Recall
[learns] Recall memories relevant to 'query' from your learning memory bank (hindsight).
memory
Memory Reflect
[learns] Reflect over your learning memory bank: hindsight reasons across what it retained and answers 'query' with…
memory
Memory Stats
[stores] Show your memory usage: total entries, total bytes, namespace count, TTL'd count, pinned count, quota…