List Log Files
list_log_filesLists log files in a specified directory, newest first, to help locate recent activity for debugging or security review.
Instructions
List log files under /var/log (or another dir), newest first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_log_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | ||
| directory | No | /var/log | |
| max_entries | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |