list_log_files
List log files in a specified directory with sizes and modified times, optionally scanning subdirectories for .log, .txt, .out, .err, and .trace files.
Instructions
列出指定目录下的所有日志文件(.log/.txt/.out/.err/.trace),含大小与修改时间。
Args: dir_path: 日志目录的绝对路径。 recursive: 是否递归扫描子目录,默认 True。
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": {
"dir_path": "<dir_path>"
},
"name": "list_log_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir_path | Yes | ||
| recursive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |