save_correction
Record mistakes and their correct solutions to automatically recall them in similar future situations, preventing repeated errors.
Instructions
Save a correction pattern — what went wrong and what the right approach is. These are surfaced automatically when similar situations arise in future sessions, helping avoid repeated mistakes.
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": {
"wrong_approach": "<wrong_approach>",
"right_approach": "<right_approach>"
},
"name": "save_correction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wrong_approach | Yes | What was done incorrectly (e.g., "Used npm install instead of bun add") | |
| right_approach | Yes | The correct approach (e.g., "Always use bun add for this project") | |
| context | No | When/where this applies (e.g., "package management in monorepo") | |
| scope | No | global = applies everywhere, project = specific to this codebase | project |
| project_id | No | Project identifier override (auto-detected from CLAUDE_PROJECT_DIR or git remote if omitted) |