memory_lesson_search
Search learned lessons by similarity to the current task to recall what worked, what to avoid, and past corrections before starting work.
Instructions
Search learned lessons (procedural memory) by similarity to the task
at hand. Call at the START of a task: what worked, what to avoid, what
the user corrected before. Heed polarity - entries — known
dead-ends. A lesson describes the run it came from, not this one:
apply it where today's specifics match, or it anchors you on a
stale framing — re_verify: true marks one whose subject facts
have changed since, so re-derive that one.
Returns: {count, entries: [{task, aspect, lesson, about, polarity, outcome, confidence, score, re_verify, re_verify_reason}]}.
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_lesson_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The task at hand, described the way it would have been logged. | |
| top_k | No | Max entries returned; positive integer. Omit to use memory.lessons.top_k (default 5). | |
| verbose | No | Full provenance metadata; default entries are compact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||