record_error
Record errors with type, message, file path, and context to build reusable prevention hints, helping future sessions avoid repeating the same mistakes.
Instructions
Record an error Claude or the user encountered so future sessions can avoid it.
error_type: exception class name or short label (e.g. "TypeError", "build_failed"). message: error message text (truncated to 300 chars). file_path: source file where the error occurred (optional). query_context: the query or action that triggered the error (optional). repo_path: optional absolute path to the target repository.
Returns: the prevention hint for this error type.
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_type": "<error_type>"
},
"name": "record_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| file_path | No | ||
| repo_path | No | ||
| error_type | Yes | ||
| query_context | No |