memory_lookup
Look up engineering-memory entries by type and anchor path before editing security-sensitive or historically buggy files; query the compact index first, then fetch only the entries you need.
Instructions
Engineering-memory entries for one or more types, optionally narrowed to anchor paths — use before editing a security-sensitive or historically buggy file. Call with detail:"index" FIRST (rows carry id, title, tokens_estimate), then memory_get only the ids you will use, batched. Reads agents/memory/<type>/*.yml and agents/memory/intake/*.jsonl. Returns a status plus per-type slices.
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": {
"types": "<types>"
},
"name": "memory_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Anchor paths or globs to match entries against (e.g. a file you are about to edit). | |
| limit | No | Maximum entries to return per type. | |
| types | Yes | Memory types to scan, e.g. `historical-patterns`, `incident-learnings`, `ownership`. | |
| detail | No | 'full': complete entries. | index |
| token_budget | No | Render compact rows (id, type, confidence, `line`) hard-cut at token_budget × 4 chars; omitted hits yield a top-level `truncation` hint. |