get_log_segment
Extract a specific segment from a log file using line numbers or timestamps to isolate relevant entries without loading the entire file.
Instructions
Extract a segment of a log file by line range or time range.
Use line ranges for precise extraction (e.g., around a known error line). Use time ranges to get all entries within a time window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| start_line | No | ||
| end_line | No | ||
| start_time | No | ||
| end_time | No | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |