get_log_stats
Generate a log statistics report from a file path: file size, total lines, time range, level distribution, and top 5 frequent errors.
Instructions
生成日志统计报告:文件大小、总行数、时间范围、级别分布、高频错误 Top5。
Args: file_path: 日志文件绝对路径。
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_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |