Tools · Memory
memory
Can wait for approvalStore and retrieve structured memory facts for the current agent.
When to use: Use this to persist durable facts that may matter across turns, sessions, or workflows.
Example
Run for real by scripts/tool-examples.py in a small demo project, with Haiku 5.5 where the tool calls a model. The output is exactly what the tool returned, in 4.5s.
The call
{
"tool": "memory",
"arguments": {
"action": "search",
"query": "region"
}
}Real output
- Ada deploys from the eu-west-1 region.
Parameters
| Name | Type | Description |
|---|---|---|
| action* | string | Whether to store or search memorystoresearch |
| content | string | Memory content |
| query | string | Memory search query |
| category | string | Optional memory category |
* required
More in Memory
Save facts and look them up in later conversations.