1Get errors and warnings for the project or a specific file.
2
3This tool can be invoked after a series of edits to determine if further edits are necessary, or if the user asks to fix errors or warnings in their codebase.
4
5When a path is provided, shows all diagnostics for that specific file.
6When no path is provided, shows a summary of error and warning counts for all files in the project.
7
8<example>
9To get diagnostics for a specific file:
10{
11 "path": "src/main.rs"
12}
13
14To get a project-wide diagnostic summary:
15{}
16</example>
17
18<guidelines>
19- If you think you can fix a diagnostic, make 1-2 attempts and then give up.
20- Don't remove code you've generated just because you can't fix an error. The user can help you fix it.
21</guidelines>