record_error
Record an error with its type and details to prevent it from recurring 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 |
|---|---|---|---|
| message | No | ||
| file_path | No | ||
| repo_path | No | ||
| error_type | Yes | ||
| query_context | No |