lean_diagnostic_messages
Retrieve all diagnostic messages (errors, warnings, infos) from a Lean file to identify and resolve code issues.
Instructions
Get all diagnostic msgs (errors, warnings, infos) for a Lean file.
"no goals to be solved" means code may need removal.
Args:
file_path (str): Abs path to Lean file
Returns:
List[str] | str: Diagnostic msgs or error msg
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 |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |