check_java
Run javac to check Java files or projects for compilation errors. Pass filePath for a single file or directory for the project root.
Instructions
Check for compilation errors in a Java file or project using 'javac'. For single files, pass filePath; for projects, pass directory containing source files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_java"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| envPath | No | Optional: Custom PATH environment variable. If not provided, uses system default PATH. | |
| filePath | No | Optional: Full path to a single .java file to compile-check. | |
| directory | No | Optional: Root directory of the Java project. If provided, compiles all .java files in it. |