java_select
Select an option in a Java combo box, list, or tab set, or select a table row or cell by handle; accessibility-based selection works when direct cell clicks do not.
Instructions
Select an option in a combo box, list or tab set — or a row or cell in a table.
Two shapes, and which one you want is told by the arguments:
option="Tennis"selects by the text the application shows, for a combo box, a list or a tab.row=2selects a whole table row, androw=2, column=1selects one cell. Table selection goes through the table's own accessible selection, which is the path the application responds to — pyjab's docs are explicit that the cellsget_cell()returns often reportbounds = -1and cannot be clicked.
The element is verified before anything is selected, exactly as java_click describes.
Args: session_id: From java_attach_window. handle: The combo box, list, tab set or table. option: Text to select. Ignored when a row is given. row: Row index to select, 0-based. column: Column index, for one cell rather than the whole row. simulate: Use simulated input where the action supports it.
Returns: What was selected, and how.
Errors:
is_error for an unknown handle, an element that changed, an option the control
does not have, or neither an option nor a row given.
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": {
"session_id": "<session_id>",
"handle": "<handle>"
},
"name": "java_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | No | ||
| column | No | ||
| handle | Yes | ||
| option | No | ||
| simulate | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |