learn
Save a distilled rule, convention, or how-to insight as a retrievable lesson so related searches rank it above ordinary results; use for durable guidance, not one-off facts.
Instructions
Use learn to save a distilled lesson for preferential retrieval.
Use learn to save a distilled lesson that should outrank ordinary results for related queries -- a rule, a convention, a "do it this way" insight, not a one-off fact.
remember = a specific durable fact, ingest = a URL, learn = a distilled lesson that gets retrieval preference.
The daemon scrubs secrets/PII before indexing, same as remember. Lessons are capped at 500 characters -- use remember for anything longer. Returns immediately -- the daemon indexes in the background.
Args: lesson: The distilled lesson text (<= 500 chars). topic: Optional domain tag (e.g. "testing", "release-process"). name: Optional user-visible slug for later reference.
Returns: The admission status and task ID; lesson indexing runs in the background. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.
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": {
"lesson": "<lesson>"
},
"name": "learn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| topic | No | ||
| lesson | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |