tail_system_logs
Retrieve recent system log entries to diagnose crashes, kernel panics, or application errors. Optionally filter by keyword for targeted results.
Instructions
Returns the last N lines from the system log. macOS: reads from the unified system log (last 5 minutes) via log show. Linux: reads from journalctl or /var/log/syslog. Optional filter_str narrows results to lines containing that keyword. Use to diagnose crashes, kernel panics, or application errors.
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": "tail_system_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to return (1–500, default 50). | |
| filter_str | No | Optional keyword to filter log lines (case-insensitive). |