memory_search
Retrieve relevant facts from persistent agent memory using natural-language queries. Also search shared user-level preferences to gain full context across agents.
Instructions
Search GrayMatter memory for relevant facts. Call once for your agent_id, then again with agent_id "shared" for user-level preferences.
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": {
"agent_id": "<agent_id>",
"query": "<query>"
},
"name": "memory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural-language query to match against stored facts. | |
| top_k | No | Maximum number of facts to return (default: 8). | |
| agent_id | Yes | The agent whose memory to search. |