cos_learn_narrative
Record what failed, what worked, and the key insight after a rework breakthrough, creating a reusable pattern for future task suggestions.
Instructions
Record what was learned from a difficult task (breakthrough narrative).
Call this after a rework→success breakthrough to capture:
What approaches failed and why
What finally worked
The reusable key insight
Creates a high-impact learned pattern for future suggestions.
Args: task_id: Task identifier (e.g. "TASK-100"). what_failed: Approaches that didn't work. what_worked: The solution that resolved the issue. key_insight: Reusable lesson learned (required).
Returns: str: JSON with status, history_id, pattern_id.
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": {
"task_id": "<task_id>"
},
"name": "cos_learn_narrative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| key_insight | No | ||
| what_failed | No | ||
| what_worked | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |