Diagnose a klippy.log
diagnose_logAnalyzes a klippy.log to explain why a Klipper print or session stopped or failed, and lints the included printer.cfg for configuration issues.
Instructions
Use when a Klipper print stopped, failed or shut down, or the printer shows an error. Reads a klippy.log and explains why the print or session died, plus lint the printer.cfg that Klipper wrote into the log. Give exactly one of text, path or moonraker. Read-only: it never touches the printer.
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": "diagnose_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a file on the machine running this server. | |
| text | No | The file contents, pasted. | |
| moonraker | No | Fetch the file from Moonraker (needs MOONRAKER_URL in the server config). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counts | Yes | ||
| report | Yes | ||
| source | Yes | ||
| summary | Yes | One line: how many errors, warnings and notes. |