lgh_log
Retrieve recent server log entries from the local log file, optionally filtered by severity level, to diagnose past failures or unexpected behavior. Returns a JSON array of log records.
Instructions
Read the LGH server's runtime log from ~/.localgithub/logs/server.jsonl and return the most recent entries as a JSON array of {ts, level, msg, component} objects (an empty array if no log file exists yet). A level filter keeps only entries at exactly that severity, so level=ERROR surfaces just the failures. Use this to investigate why a push or the server misbehaved in the past: lgh_status only shows the current health snapshot, while lgh_log shows the history that led to it.
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": "lgh_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level (DEBUG, INFO, WARN, ERROR) | |
| limit | No | Number of log entries to return (default: 20) |