java_list_windows
List the Java windows visible to Java Access Bridge to check whether an application is detectable and to get an hwnd or title for attaching. Only Java application windows are listed.
Instructions
List the Java windows Java Access Bridge can see on this machine.
Use this to find out whether the application is visible to JAB at all, and to get a title or hwnd for java_attach_window. If the application is not in this list, nothing else will work and the problem is the attachment or the environment, not a locator -- run java_diagnostics next.
Only windows of Java applications are listed; this is not a general Windows window list.
Returns: One line per window, with hwnd, pid and title. "No Java windows are visible" is a measurement and is reported as such, not as an empty string.
Errors:
is_error with an actionable message when pyjab cannot answer. On pyjab 1.9.0
the listing runs through the documented pyjab-inspect windows --json,
because the function behind it is not public API yet; the message says so when
even that is unavailable.
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_list_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |