n2_context_search
Search Brain memory and Ledger entries to find relevant past context for AI agents. Use keyword or semantic search with recency weighting to support session continuity and handoffs.
Instructions
Search across Brain memory and Ledger entries for relevant past context. Uses keyword matching with recency weighting.
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": "n2_context_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (keywords, space-separated) | |
| sources | No | Sources to search: "brain", "ledger". Default: all. | |
| semantic | No | Enable semantic search via Ollama embeddings (default: auto from config) | |
| maxResults | No | Max results (default: 10) |