Retrieve Lessons
retrieve_lessonsRetrieve relevant lessons for a tool context to guide pre-tool actions. Use in PreToolUse hooks to learn from past feedback and avoid repeated mistakes.
Instructions
Retrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | The tool being called (e.g., Bash, Edit, Read) | |
| maxResults | No | Max lessons to return (default 5) | |
| actionContext | No | Description of what the tool call is doing |