Tools · Memory

memory

Can wait for approval

Store 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 call
{
  "tool": "memory",
  "arguments": {
    "action": "search",
    "query": "region"
  }
}

Real output

- Ada deploys from the eu-west-1 region.

Parameters

NameTypeDescription
action*stringWhether to store or search memorystoresearch
contentstringMemory content
querystringMemory search query
categorystringOptional memory category

* required

Save facts and look them up in later conversations.