load_project
Load a Java project to enable compiler-accurate code analysis; must be called before other analysis tools.
Instructions
Load a Java project for analysis. MUST be called before using other analysis tools.
USAGE: load_project(projectPath="/path/to/project") OUTPUT: Project structure summary including packages, source files, buildModel (build system, source of the structure: build-tool, static-read or convention, analysis level, modules) and warnings (present only when the load was degraded)
Supports:
Maven projects (pom.xml)
Gradle projects (settings.gradle, settings.gradle.kts, build.gradle or build.gradle.kts)
Bazel projects (MODULE.bazel or WORKSPACE)
Plain Java projects with src/ directory
WORKFLOW:
Call load_project with absolute path to project root
Wait for project to load (may take a few seconds for large projects)
Use health_check to verify project is loaded
Begin using analysis tools (search_symbols, find_references, etc.)
SYNC (strict mode): answers are always verified against the files on disk - no reload is needed after editing, adding, or deleting source files. Call load_project only on first use, when a response reports RELOAD_REQUIRED (a file the build reads changed), or to rebuild everything from scratch.
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": {
"projectPath": "<projectPath>"
},
"name": "load_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project root directory containing pom.xml or build.gradle |