record_error
Records error details including type, message, and context to generate a prevention hint for avoiding the same issue in future sessions.
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 |
|---|---|---|---|
| error_type | Yes | ||
| message | No | ||
| file_path | No | ||
| query_context | No | ||
| repo_path | No |