docs/en/tools/memory.mdx
The memory tool contains two sub-tools: memory_search (search memory) and memory_get (read memory or knowledge files).
When the knowledge base feature is enabled, both tools also support accessing files under the knowledge/ directory.
No extra dependencies, available by default. Managed by the Agent Core memory system.
Search historical memory and knowledge base content with hybrid keyword and vector retrieval.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query |
Read the content of a specific memory or knowledge file.
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Relative path to the file (e.g. MEMORY.md, memory/2026-01-01.md, knowledge/concepts/rag.md) |
start_line | integer | No | Start line number |
end_line | integer | No | End line number |
The Agent automatically invokes memory tools in these scenarios: