java_diagnostics
Reports read-only diagnostics on whether this machine can drive a Java application, checking JVM, pyjab APIs, Java Access Bridge status, and bridge thread state; use first when Java automation fails.
Instructions
Report whether this machine can drive a Java application right now.
Use this first when anything fails, and after installing a JVM or enabling Java Access Bridge. It reports the platform, the interpreter, the installed pyjab and which of its public APIs are present, whether Java Access Bridge is enabled, where the bridge DLL is, and the state of the bridge thread.
It is read-only and never writes to the environment: it does not enable Java Access Bridge, because a diagnostics tool that changes what it is reporting on is worse than none.
Args: load_bridge: When true, also start the bridge thread first and report whether it came up. This is the end-to-end check; it is off by default so that a mere report cannot load a DLL.
Returns:
A multi-line report. A line that could not be measured says
UNAVAILABLE (reason) and is never reported as zero or as "missing" --
"nothing is there" and "I could not read" are different answers.
Errors: None for the environment itself: an unusable environment is what this tool reports, so it does not fail because of one.
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": "java_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| load_bridge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |