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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| file_path | No | ||
| repo_path | No | ||
| error_type | Yes | ||
| query_context | No |