validate_syntax
Validate Java syntax quickly using a file path or inline code. Returns syntax errors only, without semantic analysis, for fast feedback.
Instructions
Quick syntax-only validation for a file or inline code.
USAGE: validate_syntax(filePath="...") or validate_syntax(content="...") OUTPUT: Syntax errors (no semantic analysis for speed)
Much faster than get_diagnostics - use for quick syntax checks.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Inline Java source code to validate (alternative to filePath) | |
| fileName | No | Optional filename for inline content (default: Untitled.java) | |
| filePath | No | Path to source file to validate |