record_error
Capture user corrections to create persistent guidelines in CLAUDE.md, preventing repeated errors in future interactions.
Instructions
Record a correction from the user and save it as a learned rule in CLAUDE.md. Call this whenever the user corrects you.
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": {
"error_description": "<error_description>",
"correction": "<correction>",
"rule": "<rule>"
},
"name": "record_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error_description | Yes | What was wrong | |
| correction | Yes | What is correct | |
| rule | Yes | Derived guideline, e.g. "ALWAYS use X instead of Y" | |
| project_dir | No | Current working directory (to find project CLAUDE.md) |