find_exceptions_in_file
Find exceptions in a file by code.filepath and time window, retrieving compact summaries or full JSON error details for debugging Langfuse traces.
Instructions
Get detailed error info for a specific file (recorded code.filepath match).
Args:
ctx: Context object containing lifespan context with Langfuse client
filepath: Path to the file as recorded in Langfuse metadata (code.filepath)
age: Number of minutes to look back; capped by the configured maximum
output_mode: Controls the output format and detail level
Returns:
Based on output_mode:
- compact: List of summarized error records (top 10 newest after the full scan)
- full_json_string: String containing the full JSON response
- full_json_file: List of summarized error records with file save info
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | Yes | Number of minutes to look back (positive integer, max 7 days/10080 minutes) | |
| filepath | Yes | Path to the file to search for exceptions (full path including extension) | |
| output_mode | No | Controls the output format and action. 'compact' (default): Returns a summarized JSON object optimized for direct agent consumption. 'full_json_string': Returns the complete, raw JSON data serialized as a string. 'full_json_file': Returns a summarized JSON object AND saves the complete data to a file. | compact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |