scan_system_logs
Fetch and parse system logs to summarize errors and warning patterns, reducing token usage by aggregating log data locally.
Instructions
Fetch and parse system/service logs locally. Summarizes errors and warning patterns to prevent token usage bloat.
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": "scan_system_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | Filter by specific systemd service name (e.g. "nginx", "docker") | |
| maxLines | No | Maximum number of log lines to process locally before aggregation | |
| targetHost | No | Optional remote target host (e.g., user@hostname) | |
| filterKeywords | No | Case-insensitive keywords to filter logs |