memory_search
Search memories by query, ranked by relevance, with automatic access control. Returns content, scope, and type for each result.
Instructions
Recall memories relevant to a query, ranked best-first.
Call this before answering to retrieve what you already know. Results are
access-controlled: only memories this agent (AGENT_MEMORY_AGENT_ID) is
allowed to see are returned — private, its own, its teams'/projects', and
global. Each result has `id`, `score` (relevance), `content`, `scope`, and
`type`. Returns an empty list if nothing relevant is visible.
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": {
"query": "<query>"
},
"name": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return, best-first. | |
| owner | No | Optional filter to a single owner id. Leave unset to search everything this agent may see. | |
| query | Yes | Natural-language search query. Matches by keyword AND by association (linked memories surface even without shared words). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |