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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "get_log_segment"
}
}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 |