Class: MemorySearchTool
Defined in: packages/agentos/src/cognition/memory/io/tools/MemorySearchTool.ts:105
ITool implementation that searches the agent's memory traces using FTS5.
Usage:
const tool = new MemorySearchTool(brain);
const result = await tool.execute(
{ query: 'dark mode preference', scope: 'user', limit: 5 },
context,
);
// result.output.results → [{ id, content, type, scope, strength, tags }, ...]