analyze_file
Analyze Java source files to extract file information, imports, types with member counts, and compilation diagnostics in one operation.
Instructions
Comprehensive file analysis in a single call.
Combines:
File info (path, package, line count)
All imports (with static/on-demand flags)
All types with member counts
Compilation diagnostics (errors/warnings)
Use this instead of multiple calls to get_document_symbols + get_diagnostics.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file | |
| includeMembers | No | Include full member details for each type (default false) | |
| includeDiagnostics | No | Include compilation errors/warnings (default true) |