lean_diagnostic_messages
Get compiler errors, warnings, and infos for Lean files to diagnose and fix code issues.
Instructions
Get compiler diagnostics (errors, warnings, infos) for a Lean file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "lean_diagnostic_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | Filter to line | |
| severity | No | Filter by severity level. Returns all levels when omitted. | |
| file_path | Yes | Absolute or project-root-relative path to Lean file | |
| timeout_s | No | Max seconds to wait for elaboration. On timeout returns partial=true with still_elaborating_lines - poll again. Omit to wait for full elaboration. | |
| start_line | No | Filter from line | |
| interactive | No | Returns verbose nested TaggedText with embedded widgets. Only use when plain text is insufficient. For 'Try This' suggestions, prefer lean_code_actions. | |
| declaration_name | No | Filter to declaration (slow) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |